mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-28 16:20:01 +02:00
* Fixed TrackDetailView scaling.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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() );
|
||||
|
@@ -22,6 +22,7 @@
|
||||
#include <QWidget>
|
||||
|
||||
#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
|
||||
|
||||
|
Reference in New Issue
Block a user