┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-10-30 20:57:50 +0100
committerPeter Penz <[email protected]>2011-10-30 21:01:43 +0100
commitc872dcbda9b0fbcd945a7917ae9e4b3cb61f347c (patch)
tree4c094e8f287b093038870e8ec60733799a823402 /src/kitemviews/kfileitemmodel.h
parenta803819afddfd16f63e82f66ac46d5b54f508bd4 (diff)
Fix sorting-issues when value of a sort-role has been changed
If the value of a sort-role has been changed, emitting the signal itemsChanged() is not sufficient as from the KItemModelBase point of view an item has been moved or deleted/reinserted. Corresponding to the unit-test KFileItemModel::setData() respects this case correctly now, however there are some minor visual animation issues left that (hopefully) should not be tricky to solve.
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
-rw-r--r--src/kitemviews/kfileitemmodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index e34503ebb..8bf299003 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -160,6 +160,9 @@ private:
TypeRole,
DestinationRole,
PathRole,
+ CommentRole,
+ TagsRole,
+ RatingRole,
IsDirRole,
IsExpandedRole,
ExpansionLevelRole,
@@ -201,6 +204,7 @@ private:
QList<QPair<int, QVariant> > sizeRoleGroups() const;
QList<QPair<int, QVariant> > dateRoleGroups() const;
QList<QPair<int, QVariant> > permissionRoleGroups() const;
+ QList<QPair<int, QVariant> > ratingRoleGroups() const;
QList<QPair<int, QVariant> > genericStringRoleGroups(const QByteArray& role) const;
/**