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