diff options
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r-- | src/gui/widgets/createwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/createwidget.h b/src/gui/widgets/createwidget.h index 984c60c37..3a2102676 100644 --- a/src/gui/widgets/createwidget.h +++ b/src/gui/widgets/createwidget.h @@ -25,4 +25,7 @@ var = new type(__VA_ARGS__); \ var->postInit() +#define CREATEWIDGET2(type, ...) \ + static_cast<type>(Widget::callPostInit(new type(__VA_ARGS__))) + #endif // GUI_WIDGETS_CREATEWIDGET_H |