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