ui/qt/toolbar.cpp

changeset 659
d6baaa93f7be
parent 576
dd38b170f9a8
child 989
cd1ccc0d3d05
equal deleted inserted replaced
658:b25f54b51d76 659:d6baaa93f7be
102 static void toolbar_togglebutton_event(UiEvent *event, UiEventWrapper *wrapper) { 102 static void toolbar_togglebutton_event(UiEvent *event, UiEventWrapper *wrapper) {
103 QAction *action = (QAction*)wrapper->customdata1; 103 QAction *action = (QAction*)wrapper->customdata1;
104 event->intval = action->isChecked(); 104 event->intval = action->isChecked();
105 if(wrapper->var) { 105 if(wrapper->var) {
106 event->eventdata = wrapper->var->value; 106 event->eventdata = wrapper->var->value;
107 event->eventdatatype = UI_EVENT_DATA_INTEGER_VALUE;
107 } 108 }
108 } 109 }
109 110
110 void ui_toolbar_add_toggleitem(UiObject *obj, QToolBar *toolbar, UiToolbarToggleItem *item) { 111 void ui_toolbar_add_toggleitem(UiObject *obj, QToolBar *toolbar, UiToolbarToggleItem *item) {
111 QAction *action = new QAction(); 112 QAction *action = new QAction();

mercurial