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 ) ) );
QString i18n(const char *text)
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:44
QString title() const
virtual void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the requester.
Definition: kfontrequester.cpp:159
Definition: kfontchooser.h:82
static QFont nearestExistingFont(const QFont &font)
Definition: kfontrequester.cpp:35
QFont font() const
friend class KFontRequesterPrivate
Definition: kfontrequester.h:132
Definition: kfontchooser.h:81
KLocale * locale()
QString sampleText() const
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
KFontRequester(QWidget *parent=0L, bool onlyFixed=false)
Constructs a font requester widget.
Definition: kfontrequester.cpp:101
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.