From fc23b24f67b5c8dc6744df01fbb9b05aee93a70c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jul 2015 23:05:26 +0300 Subject: Remove default parameters from item popup. --- src/gui/widgets/itemcontainer.cpp | 2 +- src/gui/widgets/itemlinkhandler.cpp | 2 +- src/gui/widgets/itemshortcutcontainer.cpp | 2 +- src/gui/widgets/shoplistbox.cpp | 2 +- src/gui/widgets/virtshortcutcontainer.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 17c0d9cf1..9cfa0345d 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -684,7 +684,7 @@ void ItemContainer::mouseMoved(MouseEvent &event) if (item && viewport) { - itemPopup->setItem(item); + itemPopup->setItem(item, false); itemPopup->position(viewport->mMouseX, viewport->mMouseY); } else diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index a9ffd3d7b..40ec08c33 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -118,7 +118,7 @@ void ItemLinkHandler::handleLink(const std::string &link, MouseEvent *event) if (id > 0) { const ItemInfo &itemInfo = ItemDB::get(id); - itemPopup->setItem(itemInfo, color, true); + itemPopup->setItem(itemInfo, color, true, -1); if (itemPopup->isPopupVisible()) { itemPopup->setVisible(Visible_false); diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index eba9fd848..689d967c8 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -556,7 +556,7 @@ void ItemShortcutContainer::mouseMoved(MouseEvent &event) const Item *const item = inv->findItem(itemId, itemColor); if (item && viewport) { - itemPopup->setItem(item); + itemPopup->setItem(item, false); itemPopup->position(viewport->mMouseX, viewport->mMouseY); } else diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index 788a493a9..c8f1bd889 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -218,7 +218,7 @@ void ShopListBox::mouseMoved(MouseEvent &event) const Item *const item = mShopItems->at(index); if (item) { - itemPopup->setItem(item); + itemPopup->setItem(item, false); itemPopup->position(viewport->mMouseX, viewport->mMouseY); } else diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp index 2d72234a0..3c28f244f 100644 --- a/src/gui/widgets/virtshortcutcontainer.cpp +++ b/src/gui/widgets/virtshortcutcontainer.cpp @@ -360,7 +360,7 @@ void VirtShortcutContainer::mouseMoved(MouseEvent &event) if (item && viewport) { - itemPopup->setItem(item); + itemPopup->setItem(item, false); itemPopup->position(viewport->mMouseX, viewport->mMouseY); } else -- cgit v1.2.3-70-g09d2