mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 12:31:52 +02:00
Fix strange padding due to QPushButton incorrect layouting rect on OS X
This commit is contained in:
parent
f2e76803cc
commit
198ad22f09
@ -89,6 +89,10 @@ ViewManager::ViewManager( QObject* parent )
|
||||
m_queueButton = new QPushButton();
|
||||
m_queueButton->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
|
||||
m_queueButton->setText( tr( "Click to show queue" ) );
|
||||
#ifdef Q_OS_MAC
|
||||
// QPushButtons on mac have lots of weird layouting issues. Fix them by forcing the widget rect for layout calculations
|
||||
m_queueButton->setAttribute( Qt::WA_LayoutUsesWidgetRect );
|
||||
#endif
|
||||
|
||||
m_queueView = new QueueView( m_splitter );
|
||||
m_queueModel = new PlaylistModel( m_queueView );
|
||||
|
Loading…
x
Reference in New Issue
Block a user