refs #641, improvements/fixes of orderable lists / models / views

* set sort order automatically to IndexOrder when changing order of items
* call onChanged when model is changed and then update view (needed when model is changed directly, not via view)
* support for digest signal so redundant updates can be avoided
* renamed rowCountChanged (signal) to modelDataChanged - detecting row count changes only was useless
* updated Doxygen / fixed typos
This commit is contained in:
Klaus Basan
2016-05-05 12:24:22 +02:00
parent 2da14e3b62
commit 1a62de8dc3
21 changed files with 175 additions and 62 deletions

View File

@@ -178,7 +178,14 @@ namespace BlackGui
void CAircraftModelView::dropEvent(QDropEvent *event)
{
// moves from myself are ignored
// depends on isDropAllowed() / acceptDrop() if this function is called
Qt::DropAction action = event->dropAction();
if (action == Qt::MoveAction)
{
COrderableViewWithDbObjects::dropEvent(event);
return;
}
if (!this->isDropAllowed()) { return; }
if (!event) { return; }
const QMimeData *mime = event->mimeData();