-
-
Notifications
You must be signed in to change notification settings - Fork 342
Expand file tree
/
Copy pathFixedFontSelector.h
More file actions
39 lines (28 loc) · 837 Bytes
/
Copy pathFixedFontSelector.h
File metadata and controls
39 lines (28 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 2014 - 2025 Evan Teran <evan.teran@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef FIXED_FONT_SELECTOR_H_20191119_
#define FIXED_FONT_SELECTOR_H_20191119_
#include <QWidget>
#include "ui_FixedFontSelector.h"
class FixedFontSelector : public QWidget {
Q_OBJECT
public:
explicit FixedFontSelector(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~FixedFontSelector() override = default;
public:
[[nodiscard]] QFont currentFont() const;
public Q_SLOTS:
void setCurrentFont(const QFont &font);
void setCurrentFont(const QString &font);
private Q_SLOTS:
void on_fontCombo_currentFontChanged(const QFont &font);
void on_fontSize_currentIndexChanged(int index);
Q_SIGNALS:
void currentFontChanged(const QFont &font);
private:
Ui::FixedFontSelector ui;
};
#endif