mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
Better size for toolbar search-field on OS X. Not sure why the auto-sizing doesn't work as expected.
This commit is contained in:
@@ -381,6 +381,12 @@ Tomahawk::setupToolBarMac( TomahawkWindow* parent )
|
||||
searchField->parent = parent;
|
||||
[searchItem->nativeToolBarItem() setView: searchField];
|
||||
|
||||
NSSize nsirect = [searchField frame].size;
|
||||
nsirect.width = 250;
|
||||
[searchItem->nativeToolBarItem() setMinSize: nsirect];
|
||||
nsirect.width = 450;
|
||||
[searchItem->nativeToolBarItem() setMaxSize: nsirect];
|
||||
|
||||
QMacToolBarItem* spacerRightItem = toolbar->addItem( QIcon(), QString() );
|
||||
spacerRightItem->setStandardItem( QMacToolBarItem::FlexibleSpace );
|
||||
|
||||
|
Reference in New Issue
Block a user