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/dolphiniconsview.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/dolphiniconsview.h') diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index fbbbce0ec..06c417868 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -97,7 +98,11 @@ private: private: DolphinController* m_controller; DolphinCategoryDrawer* m_categoryDrawer; - QStyleOptionViewItem m_viewOptions; + + QFont m_font; + QSize m_decorationSize; + QStyleOptionViewItem::Position m_decorationPosition; + Qt::Alignment m_displayAlignment; QSize m_itemSize; -- cgit v1.3