From 220355ca8d01f5e17e8b93dfa1a893dc6e20bd8a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 12 Jul 2009 15:15:10 +0000 Subject: 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 --- src/dolphinfileitemdelegate.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/dolphinfileitemdelegate.h') 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 +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 @@ -57,6 +60,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; }; -- cgit v1.3