summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundoview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2012-02-26 10:54:07 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-27 12:48:48 +0100
commitb58631ce472ce2bfce6319874468aa4e7e11b405 (patch)
tree379bbde0e6e2e02d54ab274c31473abb55d6154b /src/widgets/util/qundoview.cpp
parent51f2a0c3318549a6f9388e3d4920eb23a60f8b7b (diff)
Don't use deprecated QAbstractItemModel::reset()
Change-Id: Idf9971668a372a12ba319d954c35e157d8a08bd1 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/util/qundoview.cpp')
-rw-r--r--src/widgets/util/qundoview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/util/qundoview.cpp b/src/widgets/util/qundoview.cpp
index 4b09d5fc70..a87e9e0f05 100644
--- a/src/widgets/util/qundoview.cpp
+++ b/src/widgets/util/qundoview.cpp
@@ -142,7 +142,8 @@ void QUndoModel::stackDestroyed(QObject *obj)
void QUndoModel::stackChanged()
{
- reset();
+ beginResetModel();
+ endResetModel();
m_sel_model->setCurrentIndex(selectedIndex(), QItemSelectionModel::ClearAndSelect);
}