diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-06 14:49:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-06 14:49:47 +0300 |
commit | c649cf883480071c9b93909c4ea4ee5ec98155b2 (patch) | |
tree | 71022fd2db59c643c19c78c5524ffcd038e35a7f /src/gui/widgets/dropshortcutcontainer.cpp | |
parent | 4cab6fc78e19799f223d951d5ccc9afb303b65f2 (diff) | |
download | manaverse-c649cf883480071c9b93909c4ea4ee5ec98155b2.tar.gz manaverse-c649cf883480071c9b93909c4ea4ee5ec98155b2.tar.bz2 manaverse-c649cf883480071c9b93909c4ea4ee5ec98155b2.tar.xz manaverse-c649cf883480071c9b93909c4ea4ee5ec98155b2.zip |
Remove some duplicate code.
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/dropshortcutcontainer.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp index 087f4b372..f1434aa23 100644 --- a/src/gui/widgets/dropshortcutcontainer.cpp +++ b/src/gui/widgets/dropshortcutcontainer.cpp @@ -54,36 +54,14 @@ DropShortcutContainer::DropShortcutContainer(Widget2 *const widget) : { mItemPopup->postInit(); - addMouseListener(this); - addWidgetListener(this); - - mBackgroundImg = Theme::getImageFromThemeXml( - "item_shortcut_background.xml", "background.xml"); if (dropShortcut) mMaxItems = dropShortcut->getItemCount(); else mMaxItems = 0; - - if (mBackgroundImg) - { - mBackgroundImg->setAlpha(settings.guiAlpha); - mBoxHeight = mBackgroundImg->getHeight(); - mBoxWidth = mBackgroundImg->getWidth(); - } - else - { - mBoxHeight = 1; - mBoxWidth = 1; - } } DropShortcutContainer::~DropShortcutContainer() { - if (mBackgroundImg) - { - mBackgroundImg->decRef(); - mBackgroundImg = nullptr; - } delete2(mItemPopup); } |