diff options
| author | Frank Reininghaus <[email protected]> | 2014-03-11 09:15:15 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2014-03-11 09:15:15 +0100 |
| commit | 47de53916904d04464d135c0efb4fd365d8368c6 (patch) | |
| tree | 408f018f920620a868c2ea40bf170f01d34e8129 /src/kitemviews/kstandarditemlistwidget.h | |
| parent | 4e574ffae5b39962210c4d822762ad9242f51437 (diff) | |
| parent | 773d505493773575df933babbf46eacc8f85316f (diff) | |
Merge branch 'KDE/4.13'
Diffstat (limited to 'src/kitemviews/kstandarditemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.h b/src/kitemviews/kstandarditemlistwidget.h index ca198c36b..ba426d054 100644 --- a/src/kitemviews/kstandarditemlistwidget.h +++ b/src/kitemviews/kstandarditemlistwidget.h @@ -54,6 +54,13 @@ protected: virtual QString itemText(int index, const KItemListView* view) const; /** + * @return The value of the "isLink" role. The default implementation returns false. + * The derived class should reimplement this function, when information about + * links is available and in usage. + */ + virtual bool itemIsLink(int index, const KItemListView* view) const; + + /** * @return String representation of the role \a role. The representation of * a role might depend on other roles, so the values of all roles * are passed as parameter. @@ -61,6 +68,11 @@ protected: virtual QString roleText(const QByteArray& role, const QHash<QByteArray, QVariant>& values) const; + /** + * @return A font based on baseFont which is customized for symlinks. + */ + virtual QFont customizedFontForLinks(const QFont& baseFont) const; + void calculateIconsLayoutItemSizeHints(QVector<QSizeF>& sizeHints, const KItemListView* view) const; void calculateCompactLayoutItemSizeHints(QVector<QSizeF>& sizeHints, const KItemListView* view) const; void calculateDetailsLayoutItemSizeHints(QVector<QSizeF>& sizeHints, const KItemListView* view) const; |
