OFontSelector Class Reference
This class lets you chose a Font out of a list of Fonts. A widget to select a font. More...
#include <ofontselector.h>
Inheritance diagram for OFontSelector:


Signals | |
| void | fontSelected (const QFont &) |
| This signal gets emitted when a font got chosen. | |
Public Member Functions | |
| OFontSelector (bool withpreview, QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| Constructs the Selector object. | |
| bool | selectedFont (QString &family, QString &style, int &size) |
| This method returns the name, style and size of the currently selected font or false if no font is selected. | |
| bool | selectedFont (QString &family, QString &style, int &size, QString &charset) |
| Overloaded member function see above. | |
| QFont | selectedFont () |
| Return the selected font. | |
| bool | setSelectedFont (const QFont &) |
| This methods tries to set the font. | |
| bool | setSelectedFont (const QString &family, const QString &style, int size, const QString &charset=0) |
| This is an overloaded method. | |
| QString | fontFamily () const |
| This method does return the font family or QString::null if there is no font item selected. | |
| QString | fontStyle () const |
| This method will return the style of the font or QString::null. | |
| int | fontSize () const |
| This method will return the font size or 10 if no font size is available. | |
| QString | fontCharSet () const |
| returns the charset of the font or QString::null | |
Protected Slots | |
| virtual void | fontFamilyClicked (int) |
| virtual void | fontStyleClicked (int) |
| virtual void | fontSizeClicked (int) |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *re) |
Detailed Description
This class lets you chose a Font out of a list of Fonts. A widget to select a font.It can show a preview too. This selector will use all available fonts
- Author:
- Rober Griebl
Definition at line 48 of file ofontselector.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Constructs the Selector object.
Definition at line 114 of file ofontselector.cpp. References QGridLayout::addMultiCellWidget(), QGridLayout::addWidget(), QObject::connect(), QGridLayout::setRowStretch(), and QObject::tr(). |
Member Function Documentation
|
||||||||||||||||
|
This method returns the name, style and size of the currently selected font or false if no font is selected.
Definition at line 220 of file ofontselector.cpp. References selectedFont(). |
|
||||||||||||||||||||
|
Overloaded member function see above.
Definition at line 276 of file ofontselector.cpp. |
|
|
Return the selected font.
Definition at line 381 of file ofontselector.cpp. References QWidget::font(). Referenced by selectedFont(). |
|
|
This methods tries to set the font.
Definition at line 168 of file ofontselector.cpp. |
|
||||||||||||||||||||
|
This is an overloaded method.
Definition at line 181 of file ofontselector.cpp. References QString::number(). |
|
|
This method does return the font family or QString::null if there is no font item selected.
Definition at line 232 of file ofontselector.cpp. |
|
|
This method will return the style of the font or QString::null.
Definition at line 243 of file ofontselector.cpp. |
|
|
This method will return the font size or 10 if no font size is available.
Definition at line 254 of file ofontselector.cpp. |
|
|
returns the charset of the font or QString::null
Definition at line 265 of file ofontselector.cpp. |
|
|
This signal gets emitted when a font got chosen.
|
The documentation for this class was generated from the following files:
