summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 19:22:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 19:22:19 +0300
commit773a510e8a063962443a88633ffa226a989ba900 (patch)
tree6f0f2e780025699942da83606954b2a868098c94
parent96eeaca6177108f93dcaab0520b38f23aea77cd8 (diff)
downloadmanaplus-773a510e8a063962443a88633ffa226a989ba900.tar.gz
manaplus-773a510e8a063962443a88633ffa226a989ba900.tar.bz2
manaplus-773a510e8a063962443a88633ffa226a989ba900.tar.xz
manaplus-773a510e8a063962443a88633ffa226a989ba900.zip
Use CREATEWIDGET macro in skilldialog.
-rw-r--r--src/gui/windows/skilldialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index b4cda6302..8b635b869 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -34,6 +34,7 @@
#include "gui/windows/shortcutwindow.h"
#include "gui/widgets/button.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/label.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabbedarea.h"
@@ -70,7 +71,7 @@ SkillDialog::SkillDialog() :
ActionListener(),
mSkills(),
mDurations(),
- mTabs(new TabbedArea(this)),
+ mTabs(CREATEWIDGETR(TabbedArea, this)),
mDeleteTabs(),
mPointsLabel(new Label(this, "0")),
// TRANSLATORS: skills dialog button
@@ -79,7 +80,6 @@ SkillDialog::SkillDialog() :
mIncreaseButton(new Button(this, _("Up"), "inc", this)),
mDefaultModel(nullptr)
{
- mTabs->postInit();
setWindowName("Skills");
setCloseButton(true);
setResizable(true);