KWidgetsAddons
kfontchooserdialog.cpp
32 QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
73int KFontChooserDialog::getFontDiff(QFont &theFont, KFontChooser::FontDiffFlags &diffFlags, const KFontChooser::DisplayFlags &flags, QWidget *parent)
75 QPointer<KFontChooserDialog> dialog = new KFontChooserDialog(flags | KFontChooser::ShowDifferences, parent);
90int KFontChooserDialog::getFont(QFont &theFont, const KFontChooser::DisplayFlags &flags, QWidget *parent)
void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the dialog.
Definition kfontchooserdialog.cpp:43
void fontSelected(const QFont &font)
Emitted whenever the currently selected font changes.
static int getFontDiff(QFont &theFont, KFontChooser::FontDiffFlags &diffFlags, const KFontChooser::DisplayFlags &flags=KFontChooser::NoDisplayFlags, QWidget *parent=nullptr)
Creates a modal font difference dialog, lets the user choose a selection of changes that should be ma...
Definition kfontchooserdialog.cpp:73
static int getFont(QFont &theFont, const KFontChooser::DisplayFlags &flags=KFontChooser::NoDisplayFlags, QWidget *parent=nullptr)
Creates a modal font dialog, lets the user choose a font, and returns when the dialog is closed.
Definition kfontchooserdialog.cpp:90
KFontChooserDialog(const KFontChooser::DisplayFlags &flags=KFontChooser::NoDisplayFlags, QWidget *parent=nullptr)
Constructs a font selection dialog.
Definition kfontchooserdialog.cpp:21
@ FixedFontsOnly
Only show monospaced/fixed-width fonts, excluding proportional fonts, (the checkbox to toggle showing...
Definition kfontchooser.h:74
void fontSelected(const QFont &font)
Emitted when the selected font changes.
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
Accepted
virtual void accept()
virtual void reject()
int result() const const
void accepted()
void rejected()
Normal
void setStyleName(const QString &styleName)
QString styleName() const const
Weight weight() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.