From 2ba5c2cfc2cea534cccd860f94a7198530b83594 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 Mar 2012 19:02:45 +0100 Subject: First step to introduce dynamic roles Currently Dolphin is only capable of showing a fixed number of roles (e.g. name, size, date, owner, ...). Dolphin 2.1 should support also other roles like rating, tags, comments or other meta-information of images or audio-files. To support this the sorting-type and additional-type from DolphinView has been replaced by a role-type represented as QByteArray. --- src/views/viewproperties.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/views/viewproperties.h') diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index 50b3b3f1e..b46249eb2 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -65,8 +65,8 @@ public: void setGroupedSorting(bool grouped); bool groupedSorting() const; - void setSorting(DolphinView::Sorting sorting); - DolphinView::Sorting sorting() const; + void setSortRole(const QByteArray& role); + QByteArray sortRole() const; void setSortOrder(Qt::SortOrder sortOrder); Qt::SortOrder sortOrder() const; @@ -79,14 +79,14 @@ public: * Note that the additional-info property is the only property where * the value is dependent from another property (in this case the view-mode). */ - void setAdditionalInfoList(const QList& info); + void setVisibleRoles(const QList& info); /** * Returns the additional information for the current set view-mode. * Note that the additional-info property is the only property where * the value is dependent from another property (in this case the view-mode). */ - QList additionalInfoList() const; + QList visibleRoles() const; /** * Sets the directory properties view mode, show preview, -- cgit v1.3