Enable drag and drop for testing

This commit is contained in:
Petr Mrázek 2013-08-28 06:51:04 +02:00
parent 5ff6fbf464
commit 93bb7c87e3

View File

@ -36,12 +36,10 @@ LegacyModEditDialog::LegacyModEditDialog( LegacyInstance* inst, QWidget* parent
m_jarmods = m_inst->jarModList();
ui->jarModsTreeView->setModel(m_jarmods.data());
/*
// FIXME: internal DnD causes segfaults later
ui->jarModsTreeView->setDragDropMode(QAbstractItemView::DragDrop);
// FIXME: DnD is glitched with contiguous (we move only first item in selection)
ui->jarModsTreeView->setSelectionMode(QAbstractItemView::SingleSelection);
*/
ui->jarModsTreeView->installEventFilter( this );
m_jarmods->startWatching();