1
0
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:
Teo Mrnjavac
2014-01-02 13:05:25 +01:00
parent 42a298f7e0
commit 8bbc7ce607

View File

@@ -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
}