class KFontComboBox |
|
A lightweight font selection widget.
A combobox to select the font from. Lightweight counterpart to KFontChooser, for situations where only the font family should be selected, while the font style and size are handled by other means. Like in KFontChooser, this widget will show the font previews in the unrolled dropdown list. The class is similar to QFontComboBox, but more tightly integrated with KDE desktop. Use it instead of QFontComboBox by default in KDE code.
Author Chusslove Illich \ See also KFontAction See also KFontChooser @since 4.1 |
|
Constructor.
parent - the parent widget |
|
|
The font currently selected from the list.
Returns the selected font |
|
Emitted when a new font has been selected,
either through user input or by setFont().
font - the new font |
|
|
Set the font to show as selected in the combobox.
font - the new font |
|
Toggle selectable fonts to be only those of fixed width or all.
onlyFixed - only fixed width fonts when true, all fonts when false |
|
The recommended size of the widget.
Reimplemented to make the recommended width independent
of the particular fonts installed.
Returns recommended size |