mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Ref T30, allow to set font as string (stylesheet string)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3780bc18e0
commit
0c7ead7977
@@ -53,6 +53,9 @@ namespace BlackGui
|
||||
//! Update the fonts
|
||||
bool updateFont(const QFont &font);
|
||||
|
||||
//! Update the fonts
|
||||
bool updateFont(const QString &qss);
|
||||
|
||||
//! Update the fonts
|
||||
bool updateFont(const QString &fontFamily, const QString &fontSize, const QString &fontStyle, const QString &fontWeight, const QString &fontColor);
|
||||
|
||||
@@ -128,6 +131,9 @@ 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);
|
||||
|
||||
//! Use style sheets in derived widgets
|
||||
//! \sa QWidget::paintEvent
|
||||
static bool useStyleSheetInDerivedWidget(QWidget *derivedWidget, QStyle::PrimitiveElement element = QStyle::PE_Widget);
|
||||
|
||||
Reference in New Issue
Block a user