mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 20:26:48 +00:00 
			
		
		
		
	HBox, VBox: call parent setPropertyOverride
This commit is contained in:
		
							parent
							
								
									1385a86bd4
								
							
						
					
					
						commit
						a9f7a30d90
					
				
					 2 changed files with 10 additions and 4 deletions
				
			
		|  | @ -670,7 +670,7 @@ namespace MWGui | |||
|             align(); | ||||
|         } | ||||
| 
 | ||||
|         void Box::_setPropertyImpl(const std::string& _key, const std::string& _value) | ||||
|         bool Box::_setPropertyImpl(const std::string& _key, const std::string& _value) | ||||
|         { | ||||
|             if (_key == "Spacing") | ||||
|                 mSpacing = MyGUI::utility::parseValue<int>(_value); | ||||
|  | @ -678,6 +678,10 @@ namespace MWGui | |||
|                 mPadding = MyGUI::utility::parseValue<int>(_value); | ||||
|             else if (_key == "AutoResize") | ||||
|                 mAutoResize = MyGUI::utility::parseValue<bool>(_value); | ||||
|             else | ||||
|                 return false; | ||||
| 
 | ||||
|             return true; | ||||
|         } | ||||
| 
 | ||||
|         void HBox::align () | ||||
|  | @ -756,7 +760,8 @@ namespace MWGui | |||
| 
 | ||||
|         void HBox::setPropertyOverride(const std::string& _key, const std::string& _value) | ||||
|         { | ||||
|             Box::_setPropertyImpl (_key, _value); | ||||
|             if (!Box::_setPropertyImpl (_key, _value)) | ||||
|                 MyGUI::Widget::setPropertyOverride(_key, _value); | ||||
|         } | ||||
| 
 | ||||
|         void HBox::setSize (const MyGUI::IntSize& _value) | ||||
|  | @ -892,7 +897,8 @@ namespace MWGui | |||
| 
 | ||||
|         void VBox::setPropertyOverride(const std::string& _key, const std::string& _value) | ||||
|         { | ||||
|             Box::_setPropertyImpl (_key, _value); | ||||
|             if (!Box::_setPropertyImpl (_key, _value)) | ||||
|                 MyGUI::Widget::setPropertyOverride(_key, _value); | ||||
|         } | ||||
| 
 | ||||
|         void VBox::setSize (const MyGUI::IntSize& _value) | ||||
|  |  | |||
|  | @ -367,7 +367,7 @@ namespace MWGui | |||
|         protected: | ||||
|             virtual void align() = 0; | ||||
| 
 | ||||
|             virtual void _setPropertyImpl(const std::string& _key, const std::string& _value); | ||||
|             virtual bool _setPropertyImpl(const std::string& _key, const std::string& _value); | ||||
| 
 | ||||
|             int mSpacing; // how much space to put between elements
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue