Bug fix: in Qt5 the layoutChanged() did not work anymore for the layer reordering

This commit is contained in:
Tats
2014-06-23 16:20:52 -04:00
parent 64889af9a9
commit b02dc5e622

View File

@@ -1539,7 +1539,10 @@ void MainWindow::connectProjectWidgets()
connect(mappingList, SIGNAL(itemActivated(QListWidgetItem*)),
this, SLOT(handleItemSelected(QListWidgetItem*)));
connect(mappingList->model(), SIGNAL(layoutChanged()),
connect(mappingList, SIGNAL(indexesMoved(const QModelIndexList&)),
this, SLOT(handleMappingIndexesMoved()));
connect(mappingList->model(), SIGNAL(rowsMoved(const QModelIndex&, int, int, const QModelIndex &, int)),
this, SLOT(handleMappingIndexesMoved()));
}
@@ -1566,7 +1569,7 @@ void MainWindow::disconnectProjectWidgets()
disconnect(mappingList, SIGNAL(itemActivated(QListWidgetItem*)),
this, SLOT(handleItemSelected(QListWidgetItem*)));
disconnect(mappingList->model(), SIGNAL(layoutChanged()),
disconnect(mappingList->model(), SIGNAL(rowsMoved(const QModelIndex&, int, int, const QModelIndex &, int)),
this, SLOT(handleMappingIndexesMoved()));
}