|
|
@ -185,7 +185,7 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
button->setItem(item, ItemWidget::Barter);
|
|
|
|
button->setItem(item, ItemWidget::Barter);
|
|
|
|
button->setUserString ("ToolTipType", "ItemPtr");
|
|
|
|
button->setUserString ("ToolTipType", "ItemPtr");
|
|
|
|
button->setUserData(MWWorld::ConstPtr(item));
|
|
|
|
button->setUserData(item);
|
|
|
|
|
|
|
|
|
|
|
|
if (mItemSelectionDialog)
|
|
|
|
if (mItemSelectionDialog)
|
|
|
|
mItemSelectionDialog->setVisible(false);
|
|
|
|
mItemSelectionDialog->setVisible(false);
|
|
|
@ -209,7 +209,7 @@ namespace MWGui
|
|
|
|
button->setIcon(item);
|
|
|
|
button->setIcon(item);
|
|
|
|
|
|
|
|
|
|
|
|
button->setUserString ("ToolTipType", "ItemPtr");
|
|
|
|
button->setUserString ("ToolTipType", "ItemPtr");
|
|
|
|
button->setUserData(MWWorld::ConstPtr(item));
|
|
|
|
button->setUserData(item);
|
|
|
|
|
|
|
|
|
|
|
|
if (mMagicSelectionDialog)
|
|
|
|
if (mMagicSelectionDialog)
|
|
|
|
mMagicSelectionDialog->setVisible(false);
|
|
|
|
mMagicSelectionDialog->setVisible(false);
|
|
|
@ -278,7 +278,7 @@ namespace MWGui
|
|
|
|
if (Misc::StringUtils::ciEqual(it->getCellRef().getRefId(), id))
|
|
|
|
if (Misc::StringUtils::ciEqual(it->getCellRef().getRefId(), id))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item = *it;
|
|
|
|
item = *it;
|
|
|
|
button->setUserData(MWWorld::ConstPtr(item));
|
|
|
|
button->setUserData(item);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|