diff options
author | Arno <am@disconnect.de> | 2013-03-03 12:05:21 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-03-03 12:05:21 +0100 |
commit | a0fe997bbe54b98a6338aa28d8b008266e423081 (patch) | |
tree | a949fcccf3485359684344a2a64e0b67a3962073 /seriestreemodel.cpp | |
parent | 1ddfe1550f718f268c8fd6f333f83898907c9ba9 (diff) | |
download | SheMov-a0fe997bbe54b98a6338aa28d8b008266e423081.tar.gz SheMov-a0fe997bbe54b98a6338aa28d8b008266e423081.tar.bz2 SheMov-a0fe997bbe54b98a6338aa28d8b008266e423081.zip |
Port to Qt5
* Change #include to qt5
* Fix missing QX11Info
* use explicit constructor for QVariant(QColor)
* use beginResetModel() and endResetModel() instead of reset(). The
latter was removed. Hopefully it still works :)
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r-- | seriestreemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/seriestreemodel.cpp b/seriestreemodel.cpp index c8260c4..4ec9f3f 100644 --- a/seriestreemodel.cpp +++ b/seriestreemodel.cpp @@ -577,6 +577,7 @@ bool SeriesTreeModel::mergeSeries(const QModelIndex &from, const QModelIndex &to mUpdateSeriesIdQuery->bindValue(":oldid", oldSeriesId); mUpdateSeriesIdQuery->bindValue(":newid", newSeriesId); if(mUpdateSeriesIdQuery->exec()){ + beginResetModel(); SmTreeItem *oldParent = static_cast<SmTreeItem*>(from.internalPointer()); SmTreeItem *newParent = static_cast<SmTreeItem*>(to.internalPointer()); //reparent items to new series @@ -598,8 +599,7 @@ bool SeriesTreeModel::mergeSeries(const QModelIndex &from, const QModelIndex &to mSeriesPartSeriesMap.remove(seriesPartId); mSeriesPartSeriesMap.insert(seriesPartId, newSeriesId); } - - reset(); + endResetModel(); return true; } return false; |