Ref T34, OS specific stylesheets

e.g. fonts.mac.qss / default is fonts.qss
This commit is contained in:
Klaus Basan
2017-04-21 19:47:44 +02:00
parent e13f7e3e68
commit ce8e5c1f10
2 changed files with 46 additions and 11 deletions

View File

@@ -151,6 +151,12 @@ namespace BlackGui
void ps_qssDirectoryChanged(const QString &file);
private:
//! Most suitable filename based on OS/existing file
static QString getBestFileName(const QString &fileName);
//! Check existance of qss file
static bool qssFileExists(const QString &filename);
QMap<QString, QString> m_styleSheets; //!< filename, stylesheet
QFileSystemWatcher m_fileWatcher {this}; //!< Monitor my qss files
};