mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Ref T30, more utility functions for style sheets
This commit is contained in:
committed by
Mathew Sutcliffe
parent
9c52334017
commit
c0fb236b25
@@ -131,8 +131,12 @@ namespace BlackGui
|
||||
//! Font as combined weight and style
|
||||
static QString fontAsCombinedWeightStyle(const QFont &font);
|
||||
|
||||
//! Parameter as stylesheet
|
||||
static QString asStylesheet(const QString &fontFamily, const QString &fontSize, const QString &fontStyle, const QString &fontWeight, const QString &fontColor);
|
||||
//! Parameters as stylesheet
|
||||
static QString asStylesheet(const QString &fontFamily, const QString &fontSize, const QString &fontStyle,
|
||||
const QString &fontWeight, const QString &fontColor = {});
|
||||
|
||||
//! Widget's font as stylesheet
|
||||
static QString asStylesheet(const QWidget *widget, int pointSize = -1);
|
||||
|
||||
//! Use style sheets in derived widgets
|
||||
//! \sa QWidget::paintEvent
|
||||
@@ -163,8 +167,8 @@ namespace BlackGui
|
||||
//! 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
|
||||
QMap<QString, QString> m_styleSheets; //!< filename, stylesheet
|
||||
QFileSystemWatcher m_fileWatcher {this}; //!< Monitor my qss files
|
||||
};
|
||||
}
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user