mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
Use DpiScaler for a fixed column width.
This commit is contained in:
@@ -258,6 +258,6 @@ ColumnViewPreviewWidget::onArtistClicked()
|
|||||||
QSize
|
QSize
|
||||||
ColumnViewPreviewWidget::minimumSize() const
|
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() );
|
return QSize( qMax( minWidth, 348 ), minimumHeight() );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user