Widget to edit option by typing or picking a font. More...
#include <fontoption.h>
Public Member Functions | |
| FontOption (const QString &_key=0, QWidget *parent=0, const QString &defValue=0) | |
| virtual void | dialog (QString &value) |
| virtual | ~FontOption () |
Widget to edit option by typing or picking a font.
FontOption - class for widget containing one editable string setting, while allowing to either type (allowing things like copy/paste) the font description (name and parameters), or use dialog to pick it. User's choice
Used as one item type in option window
| gui::FontOption::FontOption | ( | const QString & | _key = 0, |
|
| QWidget * | parent = 0, |
|||
| const QString & | defValue = 0 | |||
| ) |
Default constructor of FontOption item
| parent | parent Option Editor containing this control | |
| _key | Key in settings for this option | |
| defValue | Default value if option not found in configuration |
| gui::FontOption::~FontOption | ( | ) | [virtual] |
default destructor
| void gui::FontOption::dialog | ( | QString & | value | ) | [virtual] |
Invoke the dialog to alter the edited value Reference to edited value is passed as parameter. This function should return after the dialog ended and may update the value as it seems approprieate based on user's interaction with the dialog
| value | Reference to edited string |
Implements gui::DialogOption.