From 7bb7295a9033c0a6729b301e7c9b76393539e29a Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 22 Dec 2010 16:59:12 +0100 Subject: Made colors configurable Added a tab to ConfigurationDialog to make some colors configurable. It works somehow. The font color isn't evaluated yet, since I'm not convinced that it is a good idea. But one problem is that calling qApp->setPalette() doesn't propagate to non visible child dialogs. Dunno if it's worth fixing. --- filestreemodel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'filestreemodel.h') diff --git a/filestreemodel.h b/filestreemodel.h index 7acca2c..23e5f75 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -12,6 +12,7 @@ #include #include #include +#include #include "smtreemodel.h" @@ -56,6 +57,9 @@ class FilesTreeModel : public SmTreeModel { void readCache(); void writeCache(); + public slots: + void readSettings(); + private: //functions void populate(QSqlQuery &filesQuery); @@ -80,6 +84,7 @@ class FilesTreeModel : public SmTreeModel { SeriesTreeModel *mSeriesModel; int mMode; const int mMagic; + QColor mLocalColor; }; #endif // FILESTREEMODEL_H -- cgit v1.2.3-70-g09d2