mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
Ref T369, font setting improvements
- color can be hidden - access to QFont value/getter for family/style/size - renaming
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#define BLACKGUI_COMPONENTS_SETTINGSFONTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QFont>
|
||||
#include <QStringList>
|
||||
|
||||
namespace Ui { class CSettingsFontDialog; }
|
||||
namespace BlackGui
|
||||
@@ -38,7 +40,16 @@ namespace BlackGui
|
||||
const QString &getQss() const;
|
||||
|
||||
//! Set the current font
|
||||
void setCurrentFont(const QFont &font);
|
||||
void setFont(const QFont &font);
|
||||
|
||||
//! Get font
|
||||
QFont getFont() const;
|
||||
|
||||
//! Family, size and style
|
||||
QStringList getFamilySizeStyle() const;
|
||||
|
||||
//! With color selection
|
||||
void setWithColorSelection(bool withColor);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSettingsFontDialog> ui;
|
||||
|
||||
Reference in New Issue
Block a user