class KFontRequester |
|
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.
Author Nadeem Hasan |
|
Constructs a font requester widget.
parent - The parent widget. onlyFixed - Only display fonts which have fixed-width character sizes. |
|
|
Returns Pointer to the pushbutton in the widget. |
|
Returns The currently selected font in the requester. |
|
Emitted when a new font has been selected in the underlying dialog |
|
Returns Returns true if only fixed fonts are displayed. |
|
Returns Pointer to the label used for preview. |
|
Returns The current text in the sample text input area. |
|
Sets the currently selected font in the requester.
font - The font to select. onlyFixed - Display only fixed-width fonts in the font dialog if true, or vice-versa. |
|
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() will restore the default. text - The new sample text. The current will be removed. |
|
Set the title for the widget that will be used in the tooltip and
what's this text.
title - The title to be set. |
|
Returns The current title of the widget. |