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 ) ) );
QLayout * layout() const
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
qreal pointSizeF() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isSmoothlyScalable(const QString &family, const QString &style) const
QString title() const
virtual void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the requester.
Definition: kfontrequester.cpp:159
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
Definition: kfontchooser.h:82
static QFont nearestExistingFont(const QFont &font)
Definition: kfontrequester.cpp:35
void setFocusProxy(QWidget *w)
QFont font() const
void setMargin(int margin)
QList< int > smoothSizes(const QString &family, const QString &style)
friend class KFontRequesterPrivate
Definition: kfontrequester.h:132
QString styleString(const QFont &font)
Definition: kfontchooser.h:81
bool contains(const T &value) const
void setPointSizeF(qreal pointSize)
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
QStringList families(WritingSystem writingSystem) const
KFontRequester(QWidget *parent=0L, bool onlyFixed=false)
Constructs a font requester widget.
Definition: kfontrequester.cpp:101
QString family() const
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
void setToolTip(const QString &)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QFont font(const QString &family, const QString &style, int pointSize) const
int pointSize() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.