forked from teamnwah/openmw-tes3coop
		
	Get rid of unneeded setSize/setCoord overrides
This commit is contained in:
		
							parent
							
								
									f4c8064d39
								
							
						
					
					
						commit
						c0a88161b2
					
				
					 4 changed files with 0 additions and 24 deletions
				
			
		| 
						 | 
				
			
			@ -155,11 +155,6 @@ void ItemView::setSize(const MyGUI::IntSize &_value)
 | 
			
		|||
        layoutWidgets();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ItemView::setSize(int _width, int _height)
 | 
			
		||||
{
 | 
			
		||||
    setSize(MyGUI::IntSize(_width, _height));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ItemView::setCoord(const MyGUI::IntCoord &_value)
 | 
			
		||||
{
 | 
			
		||||
    bool changed = (_value.width != getWidth() || _value.height != getHeight());
 | 
			
		||||
| 
						 | 
				
			
			@ -168,11 +163,6 @@ void ItemView::setCoord(const MyGUI::IntCoord &_value)
 | 
			
		|||
        layoutWidgets();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ItemView::setCoord(int _left, int _top, int _width, int _height)
 | 
			
		||||
{
 | 
			
		||||
    setCoord(MyGUI::IntCoord(_left, _top, _width, _height));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ItemView::registerComponents()
 | 
			
		||||
{
 | 
			
		||||
    MyGUI::FactoryManager::getInstance().registerFactory<MWGui::ItemView>("Widget");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,8 +37,6 @@ namespace MWGui
 | 
			
		|||
 | 
			
		||||
        virtual void setSize(const MyGUI::IntSize& _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 onSelectedBackground (MyGUI::Widget* sender);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -201,11 +201,6 @@ namespace MWGui
 | 
			
		|||
            layoutWidgets();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void SpellView::setSize(int _width, int _height)
 | 
			
		||||
    {
 | 
			
		||||
        setSize(MyGUI::IntSize(_width, _height));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void SpellView::setCoord(const MyGUI::IntCoord &_value)
 | 
			
		||||
    {
 | 
			
		||||
        bool changed = (_value.width != getWidth() || _value.height != getHeight());
 | 
			
		||||
| 
						 | 
				
			
			@ -214,11 +209,6 @@ namespace MWGui
 | 
			
		|||
            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)
 | 
			
		||||
    {
 | 
			
		||||
        if (spell.mType == Spell::Type_EnchantedItem)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,8 +45,6 @@ namespace MWGui
 | 
			
		|||
 | 
			
		||||
        virtual void setSize(const MyGUI::IntSize& _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:
 | 
			
		||||
        MyGUI::ScrollView* mScrollView;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue