ui/qt/widget.cpp

changeset 110
c00e968d018b
parent 108
77254bd6dccb
child 112
c3f2f16fa4b8
equal deleted inserted replaced
109:c3dfcb8f0be7 110:c00e968d018b
50 ctn->add(separator); 50 ctn->add(separator);
51 51
52 return separator; 52 return separator;
53 } 53 }
54 54
55 void ui_set_enabled(UIWIDGET widget, int enabled) {
56 widget->setEnabled(enabled);
57 }
58
59 void ui_set_visible(UIWIDGET widget, int visible) {
60 widget->setVisible(visible);
61 }
62
55 void ui_widget_set_size(UIWIDGET w, int width, int height) { 63 void ui_widget_set_size(UIWIDGET w, int width, int height) {
56 w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height()); 64 w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height());
57 } 65 }
58 66
59 void ui_widget_redraw(UIWIDGET w) { 67 void ui_widget_redraw(UIWIDGET w) {

mercurial