From 89946d85a39f3c0b5ea87c887340b4781b6b2900 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Mar 2013 13:18:09 +0100 Subject: Fix Colors This is more a qt5-fix than a SmDirModel fix. The global palette doesn't propagate any more, so we have to set the palette in every QTreeView separately. Very annoying and tedious. Maybe I missed a Widget or two, dunno... --- smglobals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'smglobals.h') diff --git a/smglobals.h b/smglobals.h index 31a90e7..a91d162 100644 --- a/smglobals.h +++ b/smglobals.h @@ -13,6 +13,7 @@ #include #include #include +#include class QAbstractItemModel; class PictureViewer2; @@ -57,6 +58,7 @@ class SmGlobals : public QObject { const QSize minPVSize() const { return QSize(640, 480); } const QHash & icons() const { return mIcons; } qint64 dvdSize() const { return mDvdSize; } + QList &treeWidgets() { return mTreeWidgets; } private: SmGlobals(); @@ -70,6 +72,7 @@ class SmGlobals : public QObject { QSize mCursorSize; QHash mIcons; qint64 mDvdSize; + QList mTreeWidgets; }; #endif -- cgit v1.2.3-70-g09d2