KFontRequester Class Reference
This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontDialog). More...
#include <kfontrequester.h>
Inheritance diagram for KFontRequester:

Signals | |
void | fontSelected (const QFont &font) |
Public Member Functions | |
KFontRequester (QWidget *parent=0L, const char *name=0L, bool onlyFixed=false) | |
QFont | font () const |
bool | isFixedOnly () const |
QString | sampleText () const |
QString | title () const |
QLabel * | label () const |
QPushButton * | button () const |
virtual void | setFont (const QFont &font, bool onlyFixed=false) |
virtual void | setSampleText (const QString &text) |
virtual void | setTitle (const QString &title) |
Protected Slots | |
virtual void | buttonClicked () |
Protected Member Functions | |
void | displaySampleText () |
void | setToolTip () |
Protected Attributes | |
bool | m_onlyFixed |
QString | m_sampleText |
QString | m_title |
QLabel * | m_sampleLabel |
QPushButton * | m_button |
QFont | m_selFont |
Properties | |
QString | title |
QString | sampleText |
QFont | font |
Detailed Description
This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontDialog).The lineedit provides a preview of the selected font. The preview text can be customized. You can also have the font dialog show only the fixed fonts.

KDE Font Requester
- Author:
- Nadeem Hasan <nhasan@kde.org>
Definition at line 44 of file kfontrequester.h.
Constructor & Destructor Documentation
|
Constructs a font requester widget.
Definition at line 31 of file kfontrequester.cpp. |
Member Function Documentation
|
Definition at line 68 of file kfontrequester.h. |
|
Definition at line 73 of file kfontrequester.h. |
|
Definition at line 78 of file kfontrequester.h. |
|
Definition at line 83 of file kfontrequester.h. |
|
Definition at line 88 of file kfontrequester.h. |
|
Definition at line 93 of file kfontrequester.h. |
|
Sets the currently selected font in the requester.
Definition at line 52 of file kfontrequester.cpp. |
|
Sets the sample text. Normally you should not change this text, but it can be better to do this if the default text is too large for the edit area when using the default font of your application. Default text is current font name and size. Setting the text to QString::null will restore the default.
Definition at line 61 of file kfontrequester.cpp. |
|
Set the title for the widget that will be used in the tooltip and what's this text.
Definition at line 67 of file kfontrequester.cpp. |
The documentation for this class was generated from the following files: