diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/dropshortcutcontainer.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/itemshortcutcontainer.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 2 |
5 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp index 92daf8b77..d8f2f1d68 100644 --- a/src/gui/widgets/dropshortcutcontainer.cpp +++ b/src/gui/widgets/dropshortcutcontainer.cpp @@ -49,6 +49,8 @@ DropShortcutContainer::DropShortcutContainer(): mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)), mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE)) { + mItemPopup->postInit(); + addMouseListener(this); addWidgetListener(this); diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 217e30735..8754210f8 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -195,6 +195,7 @@ ItemContainer::ItemContainer(const Widget2 *const widget, mSwapItems(false), mDescItems(false) { + mItemPopup->postInit(); setFocusable(true); addKeyListener(this); addMouseListener(this); diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index 18eccecb1..bca0585a1 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -66,6 +66,7 @@ namespace ItemLinkHandler::ItemLinkHandler() : mItemPopup(new ItemPopup) { + mItemPopup->postInit(); } ItemLinkHandler::~ItemLinkHandler() diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 87ce28fe0..d85a1e73e 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -60,6 +60,8 @@ ItemShortcutContainer::ItemShortcutContainer(const unsigned number) : mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)), mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE)) { + mItemPopup->postInit(); + addMouseListener(this); addWidgetListener(this); diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index d0ff4e746..cc622653d 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -56,6 +56,7 @@ ShopListBox::ShopListBox(const Widget2 *const widget, mPriceCheck(true), mProtectItems(false) { + mItemPopup->postInit(); mHighlightColor = getThemeColor(Theme::HIGHLIGHT); mForegroundColor = getThemeColor(Theme::LISTBOX); } @@ -73,6 +74,7 @@ ShopListBox::ShopListBox(const Widget2 *const widget, mPriceCheck(true), mProtectItems(false) { + mItemPopup->postInit(); mHighlightColor = getThemeColor(Theme::HIGHLIGHT); mForegroundColor = getThemeColor(Theme::LISTBOX); } |