Fixed toolbar and status bar

This commit is contained in:
pelya
2015-04-13 01:11:50 +03:00
parent 13ad49d329
commit 7dc511ba5c
3 changed files with 13 additions and 2 deletions

View File

@@ -1541,6 +1541,16 @@ public:
* @return the button configuration.
*/
virtual const byte *GetButtonArrangement(uint &width, uint &arrangable_count, uint &button_count, uint &spacer_count) const = 0;
/**
* Override NWidgetContainer::Add to setup minimal button size,
* this will force buttons to resize to the min_button size defined in settings
*/
void Add(NWidgetResizeBase *child)
{
child->SetMinimalSize(9,9);
NWidgetContainer::Add(child);
}
};
/** Container for the 'normal' main toolbar */