class KFontCombo

A combobox to choose a font. More...

Definition#include <kfontcombo.h>
InheritsKComboBox [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods


Detailed Description

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.

 KFontCombo (QWidget *parent, const char *name = 0)

KFontCombo

Constructor

Parameters:
parentThe parent widget
nameThe object name for the widget

 KFontCombo (const QStringList &fonts, QWidget *parent, const char *name = 0)

KFontCombo

Constructor that takes an already initialzed font list

Parameters:
fontsA list of fonts to show
parentThe parent widget
nameThe object name for the widget

 ~KFontCombo ()

~KFontCombo

[virtual]

Destructor

void  setFonts (const QStringList &fonts)

setFonts

Sets the font list

Parameters:
fontsFont list to show

void  setBold (bool bold)

setBold

Set the listed fonts to bold or normal

Parameters:
boldSet to true to display fonts in bold

bool  bold ()

bold

[const]

Retrieve the current bold status

Returns: True if fonts are bold

void  setItalic (bool bold)

setItalic

Set the listed fonts to italic or regular

Parameters:
italicSet to true to display fonts italic

bool  italic ()

italic

[const]

Retrieve the current italic status

Returns: True if fonts are italic

void  setUnderline (bool bold)

setUnderline

Set the listed fonts to underlined or not underlined

Parameters:
underlineSet to true to display fonts underlined

bool  underline ()

underline

[const]

Retrieve the current underline status

Returns: True if fonts are underlined

void  setStrikeOut (bool bold)

setStrikeOut

Set the listed fonts to striked out or not

Parameters:
strikeOutSet to true to display fonts striked out

bool  strikeOut ()

strikeOut

[const]

Retrieve the current strike out status

Returns: True if fonts are striked out

void  setSize (int size)

setSize

Set the listed fonts' size

Parameters:
sizeSet to the point size to display the fonts in

int  size ()

size

[const]

Retrieve the current font size

Returns: The point size of the fonts

bool  displayFonts ()

displayFonts

[static]

Retrieve 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

void  updateFonts ()

updateFonts

[protected]

Updated the combo's listBox() to reflect changes made to the fonts' attributed