summaryrefslogtreecommitdiff
path: root/src/gui/widgets/createwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r--src/gui/widgets/createwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/createwidget.h b/src/gui/widgets/createwidget.h
index 61f85e4c0..9c72b95f5 100644
--- a/src/gui/widgets/createwidget.h
+++ b/src/gui/widgets/createwidget.h
@@ -25,6 +25,10 @@
var = new type(__VA_ARGS__); \
var->postInit()
+#define CREATEWIDGET1(var, type) \
+ var = new type; \
+ var->postInit()
+
#define CREATEWIDGET2(type, ...) \
static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))