ui/qt/widget.cpp

changeset 792
c0e92f157af5
parent 672
1b08ba076b65
child 802
cc73993a3ff9
equal deleted inserted replaced
791:c83b9acfa316 792:c0e92f157af5
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