ui/qt/widget.cpp

changeset 792
c0e92f157af5
parent 672
1b08ba076b65
child 802
cc73993a3ff9
--- a/ui/qt/widget.cpp	Fri Oct 03 11:20:34 2025 +0200
+++ b/ui/qt/widget.cpp	Fri Oct 03 11:25:10 2025 +0200
@@ -52,6 +52,14 @@
     return separator;
 }
 
+void ui_set_enabled(UIWIDGET widget, int enabled) {
+    widget->setEnabled(enabled);
+}
+
+void ui_set_visible(UIWIDGET widget, int visible) {
+    widget->setVisible(visible);
+}
+
 void ui_widget_set_size(UIWIDGET w, int width, int height) {
     w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height());
 }

mercurial