Get rid of unneeded setSize/setCoord overrides

openmw-35
scrawl 10 years ago
parent f4c8064d39
commit c0a88161b2

@ -155,11 +155,6 @@ void ItemView::setSize(const MyGUI::IntSize &_value)
layoutWidgets(); layoutWidgets();
} }
void ItemView::setSize(int _width, int _height)
{
setSize(MyGUI::IntSize(_width, _height));
}
void ItemView::setCoord(const MyGUI::IntCoord &_value) void ItemView::setCoord(const MyGUI::IntCoord &_value)
{ {
bool changed = (_value.width != getWidth() || _value.height != getHeight()); bool changed = (_value.width != getWidth() || _value.height != getHeight());
@ -168,11 +163,6 @@ void ItemView::setCoord(const MyGUI::IntCoord &_value)
layoutWidgets(); layoutWidgets();
} }
void ItemView::setCoord(int _left, int _top, int _width, int _height)
{
setCoord(MyGUI::IntCoord(_left, _top, _width, _height));
}
void ItemView::registerComponents() void ItemView::registerComponents()
{ {
MyGUI::FactoryManager::getInstance().registerFactory<MWGui::ItemView>("Widget"); MyGUI::FactoryManager::getInstance().registerFactory<MWGui::ItemView>("Widget");

@ -37,8 +37,6 @@ namespace MWGui
virtual void setSize(const MyGUI::IntSize& _value); virtual void setSize(const MyGUI::IntSize& _value);
virtual void setCoord(const MyGUI::IntCoord& _value); virtual void setCoord(const MyGUI::IntCoord& _value);
void setSize(int _width, int _height);
void setCoord(int _left, int _top, int _width, int _height);
void onSelectedItem (MyGUI::Widget* sender); void onSelectedItem (MyGUI::Widget* sender);
void onSelectedBackground (MyGUI::Widget* sender); void onSelectedBackground (MyGUI::Widget* sender);

@ -201,11 +201,6 @@ namespace MWGui
layoutWidgets(); layoutWidgets();
} }
void SpellView::setSize(int _width, int _height)
{
setSize(MyGUI::IntSize(_width, _height));
}
void SpellView::setCoord(const MyGUI::IntCoord &_value) void SpellView::setCoord(const MyGUI::IntCoord &_value)
{ {
bool changed = (_value.width != getWidth() || _value.height != getHeight()); bool changed = (_value.width != getWidth() || _value.height != getHeight());
@ -214,11 +209,6 @@ namespace MWGui
layoutWidgets(); layoutWidgets();
} }
void SpellView::setCoord(int _left, int _top, int _width, int _height)
{
setCoord(MyGUI::IntCoord(_left, _top, _width, _height));
}
void SpellView::adjustSpellWidget(const Spell &spell, SpellModel::ModelIndex index, MyGUI::Widget *widget) void SpellView::adjustSpellWidget(const Spell &spell, SpellModel::ModelIndex index, MyGUI::Widget *widget)
{ {
if (spell.mType == Spell::Type_EnchantedItem) if (spell.mType == Spell::Type_EnchantedItem)

@ -45,8 +45,6 @@ namespace MWGui
virtual void setSize(const MyGUI::IntSize& _value); virtual void setSize(const MyGUI::IntSize& _value);
virtual void setCoord(const MyGUI::IntCoord& _value); virtual void setCoord(const MyGUI::IntCoord& _value);
void setSize(int _width, int _height);
void setCoord(int _left, int _top, int _width, int _height);
private: private:
MyGUI::ScrollView* mScrollView; MyGUI::ScrollView* mScrollView;

Loading…
Cancel
Save