KWidgetsAddons
kfontrequester.cpp
56 d->m_button = new QPushButton(QIcon::fromTheme(QStringLiteral("document-edit")), QString(), this);
155 KFontChooser::DisplayFlags flags = m_onlyFixed ? KFontChooser::FixedFontsOnly : KFontChooser::NoDisplayFlags;
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
@ FixedFontsOnly
Only show monospaced/fixed-width fonts, excluding proportional fonts, (the checkbox to toggle showing...
Definition kfontchooser.h:74
This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontChooserD...
Definition kfontrequester.h:34
virtual void setFont(const QFont &font, bool onlyFixed=false)
Sets the currently selected font in the requester.
Definition kfontrequester.cpp:107
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:122
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:116
KFontRequester(QWidget *parent=nullptr, bool onlyFixed=false)
Constructs a font requester widget.
Definition kfontrequester.cpp:46
void clicked(bool checked)
Accepted
MouseButtonPress
QString family() const const
int pixelSize() const const
qreal pointSizeF() const const
Sunken
StyledPanel
QIcon fromTheme(const QString &name)
void setText(const QString &)
void addWidget(QWidget *w)
void setContentsMargins(const QMargins &margins)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool eventFilter(QObject *watched, QEvent *event)
bool isEmpty() const const
bool isNull() const const
LeftButton
virtual bool event(QEvent *event) override
void setFocusPolicy(Qt::FocusPolicy policy)
void setFont(const QFont &)
QLayout * layout() const const
QWidget * parentWidget() const const
rect
void setFocusProxy(QWidget *w)
void setToolTip(const QString &)
void setWhatsThis(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.