diff options
author | Arno <am@disconnect.de> | 2013-03-17 13:18:09 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-03-17 13:18:09 +0100 |
commit | 89946d85a39f3c0b5ea87c887340b4781b6b2900 (patch) | |
tree | 5052cbebd07f86f5363dd79f20f47ccb21e250ac /smglobals.h | |
parent | c81dcb6c33342027017f0559444685168523f486 (diff) | |
download | SheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.tar.gz SheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.tar.bz2 SheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.zip |
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...
Diffstat (limited to 'smglobals.h')
-rw-r--r-- | smglobals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smglobals.h b/smglobals.h index 31a90e7..a91d162 100644 --- a/smglobals.h +++ b/smglobals.h @@ -13,6 +13,7 @@ #include <QHash> #include <QSize> #include <QPair> +#include <QList> class QAbstractItemModel; class PictureViewer2; @@ -57,6 +58,7 @@ class SmGlobals : public QObject { const QSize minPVSize() const { return QSize(640, 480); } const QHash<QString, QString> & icons() const { return mIcons; } qint64 dvdSize() const { return mDvdSize; } + QList<QWidget*> &treeWidgets() { return mTreeWidgets; } private: SmGlobals(); @@ -70,6 +72,7 @@ class SmGlobals : public QObject { QSize mCursorSize; QHash<QString, QString> mIcons; qint64 mDvdSize; + QList<QWidget*> mTreeWidgets; }; #endif |