#include <FontSizeComboBox.h>
Signals | |
| void | valueEdited (int fontSize) |
| void | valueActivated (int fontSize) |
| void | valueChanged (int fontSize) |
Public Member Functions | |
| FontSizeComboBox (QWidget *pParent) | |
| virtual | ~FontSizeComboBox () |
| void | setCurrentValue (int fontSize) |
| int | getCurrentValue () const |
Definition at line 18 of file FontSizeComboBox.h.
| FontSizeComboBox::FontSizeComboBox | ( | QWidget * | pParent | ) |
Creates a font size combo box.
The QFontDatabase will be queried to determine valid font sizes.
| pParent | The parent widget. |
| virtual FontSizeComboBox::~FontSizeComboBox | ( | ) | [virtual] |
Destroys the font size combo box and all child items.
| void FontSizeComboBox::setCurrentValue | ( | int | fontSize | ) |
Sets the font size.
| fontSize | The font size to use. If this value is greater than zero and does not exist in the combo box, it will be added and selected. If this value is not greater than zero, the combo box will be cleared and set to an invalid index. |
| int FontSizeComboBox::getCurrentValue | ( | ) | const |
Returns the selected font size.
| void FontSizeComboBox::valueEdited | ( | int | fontSize | ) | [signal] |
Emitted when the user presses the Enter key with the combo box active.
| fontSize | The selected font size. |
| void FontSizeComboBox::valueActivated | ( | int | fontSize | ) | [signal] |
Emitted when a new combo box item is activated by the user.
| fontSize | The selected font size. |
| void FontSizeComboBox::valueChanged | ( | int | fontSize | ) | [signal] |
Emitted when the user changes the value of the combo box.
| fontSize | The selected font size. |