Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KFontCombo Class Reference
A combobox to choose a font.
More...
#include <kfontcombo.h>
Inheritance diagram for KFontCombo:
List of all members.
Detailed Description
A combobox to choose a font.
A combobox that lists the available fonts.
The items are painted using the respective font itself, so the user can easily choose a font based on its look. This can be turned off globally if the user wishes so.
- Author:
-
Malte Starostik <malte@kde.org>
- Version:
-
- Id:
-
kfontcombo.h,v 1.8.4.1 2003/07/14 02:48:17 bmeyer Exp
Definition at line 37 of file kfontcombo.h.
Constructor & Destructor Documentation
| KFontCombo::KFontCombo |
( |
QWidget * |
parent, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constructor - Parameters:
-
| parent |
The parent widget |
| name |
The object name for the widget |
|
| KFontCombo::KFontCombo |
( |
const QStringList & |
fonts, |
|
|
QWidget * |
parent, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constructor that takes an already initialzed font list - Parameters:
-
| fonts |
A list of fonts to show |
| parent |
The parent widget |
| name |
The object name for the widget |
|
| virtual KFontCombo::~KFontCombo |
( |
|
) |
[virtual] |
|
Member Function Documentation
| bool KFontCombo::bold |
( |
|
) |
|
|
|
|
Returns the current bold status.
- Returns:
-
true if fonts are bold
|
| QString KFontCombo::currentFont |
( |
|
) |
|
|
|
|
- Returns:
-
the currently selected font.
|
| bool KFontCombo::displayFonts |
( |
|
) |
[static] |
|
|
|
Returns the user's setting of whether the items should be painted in the respective fonts or not
- Returns:
-
True if the respective fonts are used for painting
|
| bool KFontCombo::italic |
( |
|
) |
|
|
|
|
Returns the current italic status
- Returns:
-
True if fonts are italic
|
| void KFontCombo::setBold |
( |
bool |
bold |
) |
|
|
|
|
Sets the listed fonts to bold or normal. - Parameters:
-
| bold |
Set to true to display fonts in bold |
|
| void KFontCombo::setCurrentFont |
( |
const QString & |
family |
) |
|
|
|
|
Sets the currently selected font. - Parameters:
-
|
| void KFontCombo::setFonts |
( |
const QStringList & |
fonts |
) |
|
|
|
|
Sets the font list. - Parameters:
-
|
| void KFontCombo::setItalic |
( |
bool |
bold |
) |
|
|
|
|
Sets the listed fonts to italic or regular. - Parameters:
-
| italic |
Set to true to display fonts italic |
|
| void KFontCombo::setSize |
( |
int |
size |
) |
|
|
|
|
Sets the listed fonts' size - Parameters:
-
| size |
Set to the point size to display the fonts in |
|
| void KFontCombo::setStrikeOut |
( |
bool |
bold |
) |
|
|
|
|
Sets the listed fonts to striked out or not - Parameters:
-
| strikeOut |
Set to true to display fonts striked out |
|
| void KFontCombo::setUnderline |
( |
bool |
bold |
) |
|
|
|
|
Sets the listed fonts to underlined or not underlined - Parameters:
-
| underline |
Set to true to display fonts underlined |
|
|
|
Returns the current font size
- Returns:
-
The point size of the fonts
|
| bool KFontCombo::strikeOut |
( |
|
) |
|
|
|
|
Returns the current strike out status
- Returns:
-
True if fonts are striked out
|
| bool KFontCombo::underline |
( |
|
) |
|
|
|
|
Returns the current underline status
- Returns:
-
True if fonts are underlined
|
| void KFontCombo::updateFonts |
( |
|
) |
[protected] |
|
|
|
Updated the combo's listBox() to reflect changes made to the fonts' attributed |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:14 2003 for kdelibs by
1.2.18