swift
settingsfontdialog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_SETTINGSFONTDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSFONTDIALOG_H
8 
9 #include <QDialog>
10 #include <QFont>
11 #include <QStringList>
12 
13 namespace Ui
14 {
15  class CSettingsFontDialog;
16 }
17 namespace swift::gui::components
18 {
23  class CSettingsFontDialog : public QDialog
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CSettingsFontDialog(QWidget *parent = nullptr);
30 
32  virtual ~CSettingsFontDialog() override;
33 
35  const QString &getQss() const;
36 
38  void setFont(const QFont &font);
39 
41  QFont getFont() const;
42 
44  QStringList getFamilySizeStyle() const;
45 
47  void setWithColorSelection(bool withColor);
48 
49  private:
50  QScopedPointer<Ui::CSettingsFontDialog> ui;
51  };
52 } // namespace swift::gui::components
53 #endif // SWIFT_GUI_COMPONENTS_SETTINGSFONTDIALOG_H
void setFont(const QFont &font)
Set the current font.
void setWithColorSelection(bool withColor)
With color selection.
const QString & getQss() const
Get stylesheet.
QStringList getFamilySizeStyle() const
Family, size and style.
CSettingsFontDialog(QWidget *parent=nullptr)
Constructor.
High level reusable GUI components.
Definition: aboutdialog.cpp:13