Ref T369, font setting improvements

- color can be hidden
- access to QFont value/getter for family/style/size
- renaming
This commit is contained in:
Klaus Basan
2018-09-23 03:28:35 +02:00
parent 527f666d1f
commit 0bb56fedfb
5 changed files with 63 additions and 6 deletions

View File

@@ -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;