┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinfileitemdelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinfileitemdelegate.h')
-rw-r--r--src/dolphinfileitemdelegate.h9
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;
};