Support moving entries with drag and drop.

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

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()));