summaryrefslogtreecommitdiff
path: root/src/gui/widgets/createwidget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 15:57:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 15:57:45 +0300
commit33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7 (patch)
tree877cd5bcdb0525af4778c6fa5b39924db47f4f9a /src/gui/widgets/createwidget.h
parent1be49b309ada7c988a5b48baa83281427db778fe (diff)
downloadmv-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.gz
mv-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.bz2
mv-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.xz
mv-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.zip
Add to Widget class method postInit().
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r--src/gui/widgets/createwidget.h3
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