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:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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() );
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user