Back to index
Ad-hoc command to be used with toggle widgets. More...
|qt_toggle_command_rep (QCheckBox *w, command c)|
|tm_ostream &||print (tm_ostream &out)|
|virtual void||apply (object args)|
|QPointer< QCheckBox >||qwid|
Ad-hoc command to be used with toggle widgets.
The command associated with a qt_ui_element::toggle_widget has as a parameter the state of the QCheckBox. Since it is assumed everywhere else that commands injected into the gui's queue accept no parameters, and changes would be too big, we choose to encapsulate the original command in a new one which will execute the first with its argument.