diff --git a/src/libtomahawk/playlist/FlexibleView.cpp b/src/libtomahawk/playlist/FlexibleView.cpp index 297a6f9ad..a6aa13ea5 100644 --- a/src/libtomahawk/playlist/FlexibleView.cpp +++ b/src/libtomahawk/playlist/FlexibleView.cpp @@ -117,6 +117,8 @@ FlexibleView::FlexibleView( QWidget* parent, QWidget* extraHeader ) connect( m_trackView, SIGNAL( querySelected( Tomahawk::query_ptr ) ), m_detailView, SLOT( setQuery( Tomahawk::query_ptr ) ) ); connect( m_header, SIGNAL( filterTextChanged( QString ) ), SLOT( setFilter( QString ) ) ); + + TomahawkUtils::fixMargins( this ); } diff --git a/src/libtomahawk/playlist/TrackDetailView.cpp b/src/libtomahawk/playlist/TrackDetailView.cpp index 8cf8e8bb9..25b83a337 100644 --- a/src/libtomahawk/playlist/TrackDetailView.cpp +++ b/src/libtomahawk/playlist/TrackDetailView.cpp @@ -40,8 +40,9 @@ using namespace Tomahawk; TrackDetailView::TrackDetailView( QWidget* parent ) : QWidget( parent ) + , DpiScaler( this ) { - setFixedWidth( 210 ); + setFixedWidth( scaledX( 210 ) ); setContentsMargins( 0, 0, 0, 0 ); QPalette pal( palette() ); diff --git a/src/libtomahawk/playlist/TrackDetailView.h b/src/libtomahawk/playlist/TrackDetailView.h index a2f9462bc..be99d12fc 100644 --- a/src/libtomahawk/playlist/TrackDetailView.h +++ b/src/libtomahawk/playlist/TrackDetailView.h @@ -22,6 +22,7 @@ #include #include "Query.h" +#include "utils/DpiScaler.h" #include "DllMacro.h" class QLabel; @@ -29,7 +30,7 @@ class CaptionLabel; class PlayableCover; class QueryLabel; -class DLLEXPORT TrackDetailView : public QWidget +class DLLEXPORT TrackDetailView : public QWidget, private TomahawkUtils::DpiScaler { Q_OBJECT