mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 12:21:52 +02:00
Fix build on Mac.
This commit is contained in:
@@ -42,7 +42,11 @@ ColumnViewPreviewWidget::ColumnViewPreviewWidget( ColumnView* parent )
|
||||
QBoxLayout* mainLayout = new QVBoxLayout;
|
||||
setLayout( mainLayout );
|
||||
|
||||
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
||||
mainLayout->addSpacing( TomahawkUtils::DpiScaler::scaledY( this, 8 ) );
|
||||
#else
|
||||
mainLayout->addSpacing( 8 );
|
||||
#endif
|
||||
|
||||
QBoxLayout* coverCenterLayout = new QHBoxLayout;
|
||||
mainLayout->addLayout( coverCenterLayout );
|
||||
@@ -56,7 +60,11 @@ ColumnViewPreviewWidget::ColumnViewPreviewWidget( ColumnView* parent )
|
||||
coverCenterLayout->addWidget( m_cover );
|
||||
coverCenterLayout->addStretch();
|
||||
|
||||
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
||||
mainLayout->addSpacing( TomahawkUtils::DpiScaler::scaledY( this, 16 ) );
|
||||
#else
|
||||
mainLayout->addSpacing( 16 );
|
||||
#endif
|
||||
|
||||
m_trackLabel = new QLabel( this );
|
||||
m_trackLabel->setAlignment( Qt::AlignCenter );
|
||||
@@ -76,7 +84,11 @@ ColumnViewPreviewWidget::ColumnViewPreviewWidget( ColumnView* parent )
|
||||
m_artistLabel->setFont( font );
|
||||
mainLayout->addWidget( m_artistLabel );
|
||||
|
||||
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
||||
mainLayout->addSpacing( TomahawkUtils::DpiScaler::scaledY( this, 16 ) );
|
||||
#else
|
||||
mainLayout->addSpacing( 16 );
|
||||
#endif
|
||||
|
||||
QGridLayout* gridLayout = new QGridLayout;
|
||||
mainLayout->addLayout( gridLayout );
|
||||
@@ -147,7 +159,11 @@ ColumnViewPreviewWidget::ColumnViewPreviewWidget( ColumnView* parent )
|
||||
|
||||
TomahawkUtils::unmarginLayout( mainLayout );
|
||||
|
||||
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
||||
gridLayout->setSpacing( TomahawkUtils::DpiScaler::scaledX( this, 4 ) );
|
||||
#else
|
||||
gridLayout->setSpacing( 4 );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user