diff options
| author | Peter Penz <[email protected]> | 2011-09-08 18:57:52 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-08 18:58:59 +0200 |
| commit | be629fe8501941138da849cf1179ad67cd5570cb (patch) | |
| tree | f10197fcac7c698a3768327475ef7b339a2f6397 /src/kitemviews/kfileitemmodel.h | |
| parent | f8f78f223cf9549556bcbd9214a1e530d5217069 (diff) | |
Version control: Apply text-color if an item is versioned
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 189c50846..1b7c8bdca 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -83,6 +83,13 @@ public: KFileItem fileItem(int index) const; /** + * @return The file-item for the url \a url. If no file-item with the given + * URL is found KFileItem::isNull() will be true for the returned + * file-item. The runtime complexity of this call is O(1). + */ + KFileItem fileItem(const KUrl& url) const; + + /** * @return The index for the file-item \a item. -1 is returned if no file-item * is found or if the file-item is null. The runtime * complexity of this call is O(1). @@ -183,7 +190,7 @@ private: Qt::CaseSensitivity m_caseSensitivity; KFileItemList m_sortedItems; // Allows O(1) access for KFileItemModel::fileItem(int index) - QHash<KFileItem, int> m_items; // Allows O(1) access for KFileItemModel::index(const KFileItem& item) + QHash<KUrl, int> m_items; // Allows O(1) access for KFileItemModel::index(const KFileItem& item) QList<QHash<QByteArray, QVariant> > m_data; bool m_requestRole[RolesCount]; |
