Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
font_selection_dialog.h
Go to the documentation of this file.
1
9
10#ifndef FONT_SELECTION_DIALOG_H
11#define FONT_SELECTION_DIALOG_H
12
13#include <QDialog>
14#include <QFont>
15
17
18namespace Ui {
19class FontSelectionDialog;
20}
21
28class FontSelectionDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
37 explicit FontSelectionDialog(QWidget *parent = nullptr);
40
45 void setSelectedFont(const QFont &font);
46
51 QFont selectedFont() const;
52
57 void setFeatures(FontSelectionWidget::Features features);
58
71 static QFont getFont(QWidget *parent, const QFont &initial,
72 FontSelectionWidget::Features features, bool *ok = nullptr);
73
74private:
75 Ui::FontSelectionDialog *ui;
76};
77
78#endif // FONT_SELECTION_DIALOG_H
~FontSelectionDialog()
Destroys the dialog and its UI form.
Definition font_selection_dialog.cpp:23
void setSelectedFont(const QFont &font)
Set the font shown in the dialog.
Definition font_selection_dialog.cpp:28
static QFont getFont(QWidget *parent, const QFont &initial, FontSelectionWidget::Features features, bool *ok=nullptr)
Run the dialog modally and return the chosen font.
Definition font_selection_dialog.cpp:43
QFont selectedFont() const
Get the font currently selected in the dialog.
Definition font_selection_dialog.cpp:33
void setFeatures(FontSelectionWidget::Features features)
Choose which editing features the dialog offers.
Definition font_selection_dialog.cpp:38
FontSelectionDialog(QWidget *parent=nullptr)
Constructs a new FontSelectionDialog.
Definition font_selection_dialog.cpp:15