if (!item) emit addClip();
else if (item->isGroup()) {
if ((columnAt(event->pos().x()) == 1)) QTreeWidget::mouseDoubleClickEvent(event);
- } else emit showProperties(item->referencedClip());
+ } else {
+ if ((columnAt(event->pos().x()) == 2)) QTreeWidget::mouseDoubleClickEvent(event);
+ else emit showProperties(item->referencedClip());
+ }
}
// virtual
QTreeWidgetItem *parent = it->parent();
if (parent/* && ((ProjectItem *) it)->clipId() < 10000*/) {
kDebug() << "++ item parent: " << parent->text(1);
- clone = (ProjectItem*) parent->takeChild(parent->indexOfChild(it));
- if (clone) addTopLevelItem(clone);
+ clone = static_cast <ProjectItem*>(parent->takeChild(parent->indexOfChild(it)));
+ if (clone) {
+ addTopLevelItem(clone);
+ clone->clearProperty("groupname");
+ clone->clearProperty("groupid");
+ }
}
}
}
// 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()
// virtual
void ProjectListView::dragMoveEvent(QDragMoveEvent * event) {
- QTreeWidgetItem * item = itemAt(event->pos());
event->setDropAction(Qt::IgnoreAction);
- //if (item) {
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 {