diff options
| author | Peter Penz <[email protected]> | 2012-03-11 19:02:45 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-03-11 19:05:56 +0100 |
| commit | 2ba5c2cfc2cea534cccd860f94a7198530b83594 (patch) | |
| tree | 787ee40d007b243a01ba581e778fc67aa179e361 /src/views/viewproperties.h | |
| parent | d28081338577bfe0104f42c20e167bb0ce70e094 (diff) | |
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.
Diffstat (limited to 'src/views/viewproperties.h')
| -rw-r--r-- | src/views/viewproperties.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<DolphinView::AdditionalInfo>& info); + void setVisibleRoles(const QList<QByteArray>& 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<DolphinView::AdditionalInfo> additionalInfoList() const; + QList<QByteArray> visibleRoles() const; /** * Sets the directory properties view mode, show preview, |
