http://www.kdenlive.org:80/mantis/view.php?id=343
svn path=/branches/KDE4/; revision=2689
connect(listView, SIGNAL(itemSelectionChanged()), this, SLOT(slotClipSelected()));
connect(listView, SIGNAL(focusMonitor()), this, SLOT(slotClipSelected()));
connect(listView, SIGNAL(itemSelectionChanged()), this, SLOT(slotClipSelected()));
connect(listView, SIGNAL(focusMonitor()), this, SLOT(slotClipSelected()));
+ connect(listView, SIGNAL(pauseMonitor()), this, SLOT(slotPauseMonitor()));
connect(listView, SIGNAL(requestMenu(const QPoint &, QTreeWidgetItem *)), this, SLOT(slotContextMenu(const QPoint &, QTreeWidgetItem *)));
connect(listView, SIGNAL(addClip()), this, SLOT(slotAddClip()));
connect(listView, SIGNAL(addClip(QUrl, const QString &)), this, SLOT(slotAddClip(QUrl, const QString &)));
connect(listView, SIGNAL(requestMenu(const QPoint &, QTreeWidgetItem *)), this, SLOT(slotContextMenu(const QPoint &, QTreeWidgetItem *)));
connect(listView, SIGNAL(addClip()), this, SLOT(slotAddClip()));
connect(listView, SIGNAL(addClip(QUrl, const QString &)), this, SLOT(slotAddClip(QUrl, const QString &)));
+void ProjectList::slotPauseMonitor() {
+ if (m_render) m_render->pause();
+}
+
void ProjectList::slotUpdateClipProperties(const QString &id, QMap <QString, QString> properties) {
ProjectItem *item = getItemById(id);
if (item) {
void ProjectList::slotUpdateClipProperties(const QString &id, QMap <QString, QString> properties) {
ProjectItem *item = getItemById(id);
if (item) {
void slotProcessNextClipInQueue();
void slotProcessNextThumbnail();
void slotCheckForEmptyQueue();
void slotProcessNextClipInQueue();
void slotProcessNextThumbnail();
void slotCheckForEmptyQueue();
+ void slotPauseMonitor();
//void slotShowMenu(const QPoint &pos);
signals:
//void slotShowMenu(const QPoint &pos);
signals:
// virtual
void ProjectListView::mouseMoveEvent(QMouseEvent *event) {
// virtual
void ProjectListView::mouseMoveEvent(QMouseEvent *event) {
- kDebug() << "// DRAG STARTED, MOUSE MOVED: ";
+ //kDebug() << "// DRAG STARTED, MOUSE MOVED: ";
if (!m_dragStarted) return;
if ((event->pos() - m_DragStartPosition).manhattanLength()
if (!m_dragStarted) return;
if ((event->pos() - m_DragStartPosition).manhattanLength()
// virtual
void ProjectListView::dragMoveEvent(QDragMoveEvent * event) {
// virtual
void ProjectListView::dragMoveEvent(QDragMoveEvent * event) {
- QTreeWidgetItem * item = itemAt(event->pos());
event->setDropAction(Qt::IgnoreAction);
event->setDropAction(Qt::IgnoreAction);
event->setDropAction(Qt::MoveAction);
if (event->mimeData()->hasText()) {
event->acceptProposedAction();
}
event->setDropAction(Qt::MoveAction);
if (event->mimeData()->hasText()) {
event->acceptProposedAction();
}
+ // stop playing because we get a crash otherwise when fetching the thumbnails
+ emit pauseMonitor();
}
QStringList ProjectListView::mimeTypes() const {
}
QStringList ProjectListView::mimeTypes() const {
void addClip(QUrl, const QString &);
void showProperties(DocClipBase *);
void focusMonitor();
void addClip(QUrl, const QString &);
void showProperties(DocClipBase *);
void focusMonitor();