Widget to edit boolean option. More...
#include <booloption.h>
Public Member Functions | |
| BoolOption (const QString &_key, QWidget *parent=0, bool _defValue=false) | |
| virtual | ~BoolOption () |
| virtual QSize | sizeHint () const |
| virtual void | writeValue () |
| virtual void | readValue () |
Protected Slots | |
| void | boolChange () |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *e) |
Protected Attributes | |
| QCheckBox * | ed |
| bool | defValue |
Widget to edit boolean option.
Class for widget containing one editable setting of type bool
Used as one item type in option window
| gui::BoolOption::BoolOption | ( | const QString & | _key, | |
| QWidget * | parent = 0, |
|||
| bool | _defValue = false | |||
| ) |
Default constructor of BoolOption item
| parent | parent Option Editor containing this control | |
| _key | Key in settings for this option | |
| _defValue | Default value if option not found |
| gui::BoolOption::~BoolOption | ( | ) | [virtual] |
default destructor
| void gui::BoolOption::boolChange | ( | ) | [protected, slot] |
Called when clicked on the checkbox
References ed.
| void gui::BoolOption::readValue | ( | ) | [virtual] |
read value from settings for editing
Implements gui::Option.
| void gui::BoolOption::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Called on resizing of this option editing control
| e | resize event parameters |
| QSize gui::BoolOption::sizeHint | ( | ) | const [virtual] |
| void gui::BoolOption::writeValue | ( | ) | [virtual] |
bool gui::BoolOption::defValue [protected] |
Default value if option not found
QCheckBox* gui::BoolOption::ed [protected] |
checkbox used for editing the value
Referenced by boolChange(), sizeHint(), and writeValue().