diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-03-05 10:48:33 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-03-05 10:48:33 +0100 |
| commit | 6747241934218c6e7529e94598d1f16cb87951ff (patch) | |
| tree | 5b908163e5179e0a72c3b8bcd819bed782679e90 /src/kitemviews/kstandarditemlistwidget.h | |
| parent | 8b556c8279a7606d21cf74804cfb937b21e561cb (diff) | |
Fix Bug 326210 - Dolphin unnecessarily truncates names of soft links in compact mode
FIXED-IN: 4.13.0
BUG: 326210
BUG: 310592
REVIEW: 116121
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; |
