KDEUI
kfontrequester.cpp
Go to the documentation of this file.
206 m_sampleLabel->setText( QString( "%1 %2" ).arg( family ).arg( KGlobal::locale()->formatNumber( size, (size == floor(size)) ? 0 : 1 ) ) );
static int getFont(QFont &theFont, const KFontChooser::DisplayFlags &flags=KFontChooser::NoDisplayFlags, QWidget *parent=0L, Qt::CheckState *sizeIsRelativeState=0L)
Creates a modal font dialog, lets the user choose a font, and returns when the dialog is closed.
Definition: kfontdialog.cpp:136
This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontDialog).
Definition: kfontrequester.h:45
virtual void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the requester.
Definition: kfontrequester.cpp:159
virtual void setTitle(const QString &title)
Set the title for the widget that will be used in the tooltip and what's this text.
Definition: kfontrequester.cpp:174
void fontSelected(const QFont &font)
Emitted when a new font has been selected in the underlying dialog.
virtual void setSampleText(const QString &text)
Sets the sample text.
Definition: kfontrequester.cpp:168
KFontRequester(QWidget *parent=0L, bool onlyFixed=false)
Constructs a font requester widget.
Definition: kfontrequester.cpp:101
static QFont nearestExistingFont(const QFont &font)
Definition: kfontrequester.cpp:35
QString i18n(const char *text)
KLocale * locale()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.