diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 15:57:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 15:57:45 +0300 |
commit | 33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7 (patch) | |
tree | 877cd5bcdb0525af4778c6fa5b39924db47f4f9a /src/gui/widgets/createwidget.h | |
parent | 1be49b309ada7c988a5b48baa83281427db778fe (diff) | |
download | plus-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.gz plus-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.bz2 plus-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.tar.xz plus-33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7.zip |
Add to Widget class method postInit().
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 |