1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 18:14:50 +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:
Christian Muehlhaeuser
2015-12-13 10:18:44 +01:00
parent 5a34bae757
commit 3d511b65e1

View File

@@ -381,6 +381,12 @@ Tomahawk::setupToolBarMac( TomahawkWindow* parent )
searchField->parent = parent; searchField->parent = parent;
[searchItem->nativeToolBarItem() setView: searchField]; [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() ); QMacToolBarItem* spacerRightItem = toolbar->addItem( QIcon(), QString() );
spacerRightItem->setStandardItem( QMacToolBarItem::FlexibleSpace ); spacerRightItem->setStandardItem( QMacToolBarItem::FlexibleSpace );