From e65154552769e648bcbe14429123ff9fcd48bd29 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 6 Dec 2007 21:06:45 +0000 Subject: Fixed wrong usage of QStyleOptionViewItem: caching of the file item in the constructor is too early (thanks to Fredrik for the hint!). This fixes 2 issues: * the selection color of the details view now uses the correct selection color * changing the colors of KDE results in updating the colors of all Dolphin views CCMAIL: hein@kde.org CCMAIL: ereslibre@kde.org CCMAIL: mw_triad@users.sourceforge.net svn path=/trunk/KDE/kdebase/apps/; revision=745700 --- src/dolphincolumnwidget.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dolphincolumnwidget.h') diff --git a/src/dolphincolumnwidget.h b/src/dolphincolumnwidget.h index e8fea3bf5..5cb7e1168 100644 --- a/src/dolphincolumnwidget.h +++ b/src/dolphincolumnwidget.h @@ -20,7 +20,9 @@ #ifndef DOLPHINCOLUMNWIDGET_H #define DOLPHINCOLUMNWIDGET_H +#include #include +#include #include #include @@ -147,7 +149,10 @@ private: DolphinColumnView* m_view; KUrl m_url; // URL of the directory that is shown KUrl m_childUrl; // URL of the next column that is shown - QStyleOptionViewItem m_viewOptions; + + QFont m_font; + QSize m_decorationSize; + KDirLister* m_dirLister; DolphinModel* m_dolphinModel; DolphinSortFilterProxyModel* m_proxyModel; @@ -184,9 +189,4 @@ inline const KUrl& DolphinColumnWidget::url() const return m_url; } -inline QStyleOptionViewItem DolphinColumnWidget::viewOptions() const -{ - return m_viewOptions; -} - #endif -- cgit v1.3