ui/qt/toolkit.cpp

changeset 1221
b147745ba6be
parent 1146
35e098a663a7
equal deleted inserted replaced
1220:185d9fe96c6b 1221:b147745ba6be
129 UiEvent e; 129 UiEvent e;
130 e.obj = obj; 130 e.obj = obj;
131 e.window = obj->window; 131 e.window = obj->window;
132 e.document = obj->ctx->document; 132 e.document = obj->ctx->document;
133 e.eventdata = NULL; 133 e.eventdata = NULL;
134 e.eventdatatype = 0; 134 e.eventdatatype = UI_EVENT_DATA_NULL;
135 e.intval = 0; 135 e.intval = 0;
136 e.set = ui_get_setop(); 136 e.set = ui_get_setop();
137 if(prepare_event) { 137 if(prepare_event) {
138 prepare_event(&e, this); 138 prepare_event(&e, this);
139 } 139 }
167 UiEvent e; 167 UiEvent e;
168 e.obj = obj; 168 e.obj = obj;
169 e.window = obj->window; 169 e.window = obj->window;
170 e.document = obj->ctx->document; 170 e.document = obj->ctx->document;
171 e.eventdata = NULL; 171 e.eventdata = NULL;
172 e.eventdatatype = 0; 172 e.eventdatatype = UI_EVENT_DATA_NULL;
173 e.intval = 0; 173 e.intval = 0;
174 e.set = ui_get_setop(); 174 e.set = ui_get_setop();
175 if(prepare_event) { 175 if(prepare_event) {
176 prepare_event(&e, this); 176 prepare_event(&e, this);
177 } 177 }
183 // ui_enablefunc for UiAction 183 // ui_enablefunc for UiAction
184 void ui_action_enable(UiQAction *action, int enable) { 184 void ui_action_enable(UiQAction *action, int enable) {
185 action->setEnabled((bool)enable); 185 action->setEnabled((bool)enable);
186 } 186 }
187 187
188 void ui_call_mainthread(ui_threadfunc tf, void* td) {
189 // TODO
190 }

mercurial