diff options
author | Albert Astals Cid <aacid@kde.org> | 2013-02-20 12:18:40 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-21 00:58:25 +0100 |
commit | 20dbad1bbf59495b52bccf6ad44965e3953c72a3 (patch) | |
tree | e43ed988016825a0f9b07881be40ffa9b9038338 /src/corelib/itemmodels | |
parent | c816a338f7facf00da85ae9d1546bc5906784760 (diff) |
Emit which role actually changed
Change-Id: I596a81628e5553779986a94769e114d89a44b264
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/itemmodels')
-rw-r--r-- | src/corelib/itemmodels/qstringlistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/itemmodels/qstringlistmodel.cpp b/src/corelib/itemmodels/qstringlistmodel.cpp index 73fdd9eb97..c6fabfcaee 100644 --- a/src/corelib/itemmodels/qstringlistmodel.cpp +++ b/src/corelib/itemmodels/qstringlistmodel.cpp @@ -189,7 +189,7 @@ bool QStringListModel::setData(const QModelIndex &index, const QVariant &value, if (index.row() >= 0 && index.row() < lst.size() && (role == Qt::EditRole || role == Qt::DisplayRole)) { lst.replace(index.row(), value.toString()); - emit dataChanged(index, index); + emit dataChanged(index, index, QVector<int>() << role); return true; } return false; |