1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-29 16:50:11 +02:00

* Fixed TrackDetailView scaling.

This commit is contained in:
Christian Muehlhaeuser
2014-09-08 17:28:32 +02:00
parent 17f58d2a8a
commit 3748bd9c68
3 changed files with 6 additions and 2 deletions

View File

@@ -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_trackView, SIGNAL( querySelected( Tomahawk::query_ptr ) ), m_detailView, SLOT( setQuery( Tomahawk::query_ptr ) ) );
connect( m_header, SIGNAL( filterTextChanged( QString ) ), SLOT( setFilter( QString ) ) ); connect( m_header, SIGNAL( filterTextChanged( QString ) ), SLOT( setFilter( QString ) ) );
TomahawkUtils::fixMargins( this );
} }

View File

@@ -40,8 +40,9 @@ using namespace Tomahawk;
TrackDetailView::TrackDetailView( QWidget* parent ) TrackDetailView::TrackDetailView( QWidget* parent )
: QWidget( parent ) : QWidget( parent )
, DpiScaler( this )
{ {
setFixedWidth( 210 ); setFixedWidth( scaledX( 210 ) );
setContentsMargins( 0, 0, 0, 0 ); setContentsMargins( 0, 0, 0, 0 );
QPalette pal( palette() ); QPalette pal( palette() );

View File

@@ -22,6 +22,7 @@
#include <QWidget> #include <QWidget>
#include "Query.h" #include "Query.h"
#include "utils/DpiScaler.h"
#include "DllMacro.h" #include "DllMacro.h"
class QLabel; class QLabel;
@@ -29,7 +30,7 @@ class CaptionLabel;
class PlayableCover; class PlayableCover;
class QueryLabel; class QueryLabel;
class DLLEXPORT TrackDetailView : public QWidget class DLLEXPORT TrackDetailView : public QWidget, private TomahawkUtils::DpiScaler
{ {
Q_OBJECT Q_OBJECT