1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-19 23:41:51 +02:00

Use DpiScaler for a fixed column width.

This commit is contained in:
Teo Mrnjavac 2014-01-08 15:23:38 +01:00
parent 903bd0ee4b
commit 3299dc14d6

View File

@ -258,6 +258,6 @@ ColumnViewPreviewWidget::onArtistClicked()
QSize
ColumnViewPreviewWidget::minimumSize() const
{
int minWidth = qMax( m_trackLabel->sizeHint().width() + 32, m_artistLabel->sizeHint().width() + 32 );
int minWidth = TomahawkUtils::DpiScaler::scaledX( this, 280 );
return QSize( qMax( minWidth, 348 ), minimumHeight() );
}