diff options
| author | Peter Penz <[email protected]> | 2009-07-12 15:15:10 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-12 15:15:10 +0000 |
| commit | 220355ca8d01f5e17e8b93dfa1a893dc6e20bd8a (patch) | |
| tree | 1903086681140c8e734bd4b6bc3b49c2b61cf411 /src/dolphinfileitemdelegate.h | |
| parent | 01a158c9e046190f58235dab33cbfc1a423d909c (diff) | |
Just change the text color for revisioned files instead of using a completely filled background. I'm unsure whether we should use emblems or not... The problem with emblems is that most people that work with revisioned files use the details view with very small icons. So having an emblem above an icon and additionally the selection indicator does not work. Any ideas?
svn path=/trunk/KDE/kdebase/apps/; revision=995378
Diffstat (limited to 'src/dolphinfileitemdelegate.h')
| -rw-r--r-- | src/dolphinfileitemdelegate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dolphinfileitemdelegate.h b/src/dolphinfileitemdelegate.h index cdc28013a..70b30e99d 100644 --- a/src/dolphinfileitemdelegate.h +++ b/src/dolphinfileitemdelegate.h @@ -22,6 +22,9 @@ #include <kfileitemdelegate.h> +class DolphinModel; +class QAbstractProxyModel; + /** * Extends KFileItemDelegate by the ability to show the hover effect * and the selection in a minimized way for the name column of @@ -58,6 +61,12 @@ public: static int nameColumnWidth(const QString& name, const QStyleOptionViewItem& option); private: + static void adjustOptionWidth(QStyleOptionViewItemV4& option, + const QAbstractProxyModel* proxyModel, + const DolphinModel* dolphinModel, + const QModelIndex& index); + +private: bool m_hasMinimizedNameColumn; }; |
