10#ifndef FONT_SELECTION_DIALOG_H
11#define FONT_SELECTION_DIALOG_H
19class FontSelectionDialog;
57 void setFeatures(FontSelectionWidget::Features features);
71 static QFont
getFont(QWidget *parent,
const QFont &initial,
72 FontSelectionWidget::Features features,
bool *ok =
nullptr);
75 Ui::FontSelectionDialog *ui;
~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