forked from teamnwah/openmw-tes3coop
Merge pull request #1128 from MiroslavR/Woverloaded-virtual
Fix overloaded virtual function warning
This commit is contained in:
commit
233c9e37b0
2 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ namespace MWGui
|
||||||
line.mIcon->setUserString("ToolTipType", "ItemPtr");
|
line.mIcon->setUserString("ToolTipType", "ItemPtr");
|
||||||
line.mIcon->setUserData(line.mItemPtr);
|
line.mIcon->setUserData(line.mItemPtr);
|
||||||
line.mIcon->eventMouseButtonClick += MyGUI::newDelegate(this, &ItemChargeView::onIconClicked);
|
line.mIcon->eventMouseButtonClick += MyGUI::newDelegate(this, &ItemChargeView::onIconClicked);
|
||||||
line.mIcon->eventMouseWheel += MyGUI::newDelegate(this, &ItemChargeView::onMouseWheel);
|
line.mIcon->eventMouseWheel += MyGUI::newDelegate(this, &ItemChargeView::onMouseWheelMoved);
|
||||||
|
|
||||||
line.mCharge = mScrollView->createWidget<Widgets::MWDynamicStat>("MW_ChargeBar", MyGUI::IntCoord(), MyGUI::Align::Default);
|
line.mCharge = mScrollView->createWidget<Widgets::MWDynamicStat>("MW_ChargeBar", MyGUI::IntCoord(), MyGUI::Align::Default);
|
||||||
line.mCharge->setNeedMouseFocus(false);
|
line.mCharge->setNeedMouseFocus(false);
|
||||||
|
@ -202,7 +202,7 @@ namespace MWGui
|
||||||
eventItemClicked(this, *sender->getUserData<MWWorld::Ptr>());
|
eventItemClicked(this, *sender->getUserData<MWWorld::Ptr>());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemChargeView::onMouseWheel(MyGUI::Widget* /*sender*/, int rel)
|
void ItemChargeView::onMouseWheelMoved(MyGUI::Widget* /*sender*/, int rel)
|
||||||
{
|
{
|
||||||
if (mScrollView->getViewOffset().top + rel*0.3f > 0)
|
if (mScrollView->getViewOffset().top + rel*0.3f > 0)
|
||||||
mScrollView->setViewOffset(MyGUI::IntPoint(0, 0));
|
mScrollView->setViewOffset(MyGUI::IntPoint(0, 0));
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace MWGui
|
||||||
void updateLine(const Line& line);
|
void updateLine(const Line& line);
|
||||||
|
|
||||||
void onIconClicked(MyGUI::Widget* sender);
|
void onIconClicked(MyGUI::Widget* sender);
|
||||||
void onMouseWheel(MyGUI::Widget* sender, int rel);
|
void onMouseWheelMoved(MyGUI::Widget* sender, int rel);
|
||||||
|
|
||||||
typedef std::vector<Line> Lines;
|
typedef std::vector<Line> Lines;
|
||||||
Lines mLines;
|
Lines mLines;
|
||||||
|
|
Loading…
Reference in a new issue