diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:16:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:16:08 +0300 |
commit | bc0c0e76dad3b1cf960da8b0a2247b50d323c887 (patch) | |
tree | 476361dfdb94c98bb2eb80c81b6e16450788f88e | |
parent | 636fd1ec2cca2a69538ee37a768752ed4236ca42 (diff) | |
download | manaverse-bc0c0e76dad3b1cf960da8b0a2247b50d323c887.tar.gz manaverse-bc0c0e76dad3b1cf960da8b0a2247b50d323c887.tar.bz2 manaverse-bc0c0e76dad3b1cf960da8b0a2247b50d323c887.tar.xz manaverse-bc0c0e76dad3b1cf960da8b0a2247b50d323c887.zip |
Use CREATEWIDGET macro in skilllistbox.
-rw-r--r-- | src/gui/widgets/skilllistbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h index 2756057f7..4eda139a5 100644 --- a/src/gui/widgets/skilllistbox.h +++ b/src/gui/widgets/skilllistbox.h @@ -28,6 +28,7 @@ #include "gui/skin.h" #include "gui/viewport.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/listbox.h" #include "gui/widgets/skilldata.h" @@ -54,7 +55,7 @@ class SkillListBox final : public ListBox SkillModel *const model) : ListBox(widget, model, "skilllistbox.xml"), mModel(model), - mPopup(new SkillPopup), + mPopup(CREATEWIDGETR0(SkillPopup)), mTextColor(getThemeColor(ThemeColorId::TEXT)), mTextColor2(getThemeColor(ThemeColorId::TEXT_OUTLINE)), mCooldownColor(getThemeColor(ThemeColorId::SKILL_COOLDOWN)), @@ -64,7 +65,6 @@ class SkillListBox final : public ListBox { mRowHeight = getFont()->getHeight() * 2 + mSpacing + 2 * mPadding; mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT); - mPopup->postInit(); if (mRowHeight < 34) mRowHeight = 34; |