1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* DpiScale the header.

This commit is contained in:
Christian Muehlhaeuser
2014-09-08 17:16:49 +02:00
parent 41f04a4a10
commit 17f58d2a8a
2 changed files with 5 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ using namespace Tomahawk;
BasicHeader::BasicHeader( QWidget* parent ) BasicHeader::BasicHeader( QWidget* parent )
: BackgroundWidget( parent ) : BackgroundWidget( parent )
, DpiScaler( this )
, ui( new Ui::HeaderWidget ) , ui( new Ui::HeaderWidget )
{ {
setAutoFillBackground( false ); setAutoFillBackground( false );
@@ -75,7 +76,8 @@ BasicHeader::BasicHeader( QWidget* parent )
ui->anchor3Label->setPalette( p ); ui->anchor3Label->setPalette( p );
} }
setFixedHeight( 140 ); setFixedHeight( scaledY( 140 ) );
TomahawkUtils::fixMargins( this );
} }

View File

@@ -22,6 +22,7 @@
#include "ui_HeaderWidget.h" #include "ui_HeaderWidget.h"
#include "utils/DpiScaler.h"
#include "widgets/BackgroundWidget.h" #include "widgets/BackgroundWidget.h"
#include "DllMacro.h" #include "DllMacro.h"
@@ -30,7 +31,7 @@ class ElidedLabel;
class QPaintEvent; class QPaintEvent;
class QBoxLayout; class QBoxLayout;
class DLLEXPORT BasicHeader : public BackgroundWidget class DLLEXPORT BasicHeader : public BackgroundWidget, private TomahawkUtils::DpiScaler
{ {
Q_OBJECT Q_OBJECT
public: public: