diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2010-09-23 12:16:14 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-10-19 08:33:26 (GMT) |
commit | fbf11a9584c011e5fb10bf008cc3c8ad99c3103f (patch) | |
tree | cc6e9bbbe3753ea2698f8094e3238b4e5ded037c /src/gui/itemviews | |
parent | f7050db9608cd20f9b6d455f705d8e9ada6f8e9e (diff) | |
download | Qt-fbf11a9584c011e5fb10bf008cc3c8ad99c3103f.zip Qt-fbf11a9584c011e5fb10bf008cc3c8ad99c3103f.tar.gz Qt-fbf11a9584c011e5fb10bf008cc3c8ad99c3103f.tar.bz2 |
Emit beginResetModel before updating the strings.
Reviewed-by: gabi
Merge-request: 694
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qstringlistmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemviews/qstringlistmodel.cpp b/src/gui/itemviews/qstringlistmodel.cpp index 8d69ee4..60ff952 100644 --- a/src/gui/itemviews/qstringlistmodel.cpp +++ b/src/gui/itemviews/qstringlistmodel.cpp @@ -290,8 +290,9 @@ QStringList QStringListModel::stringList() const */ void QStringListModel::setStringList(const QStringList &strings) { + emit beginResetModel(); lst = strings; - reset(); + emit endResetModel(); } /*! |