Support moving entries with drag and drop.

This commit is contained in:
Felix Geyer committed 2012-04-26 16:35:13 +02:00
1 parent 79b6ff99e4
commit 74ac6c27d7
6 files changed
+98 -18

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ EntryView::EntryView(QWidget* parent)
setUniformRowHeights(true);
setRootIsDecorated(false);
setDragEnabled(true);
connect(this, SIGNAL(activated(const QModelIndex&)), SLOT(emitEntryActivated(const QModelIndex&)));
connect(selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SIGNAL(entrySelectionChanged()));