mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
* DpiScale the header.
This commit is contained in:
@@ -35,6 +35,7 @@ using namespace Tomahawk;
|
||||
|
||||
BasicHeader::BasicHeader( QWidget* parent )
|
||||
: BackgroundWidget( parent )
|
||||
, DpiScaler( this )
|
||||
, ui( new Ui::HeaderWidget )
|
||||
{
|
||||
setAutoFillBackground( false );
|
||||
@@ -75,7 +76,8 @@ BasicHeader::BasicHeader( QWidget* parent )
|
||||
ui->anchor3Label->setPalette( p );
|
||||
}
|
||||
|
||||
setFixedHeight( 140 );
|
||||
setFixedHeight( scaledY( 140 ) );
|
||||
TomahawkUtils::fixMargins( this );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "ui_HeaderWidget.h"
|
||||
|
||||
#include "utils/DpiScaler.h"
|
||||
#include "widgets/BackgroundWidget.h"
|
||||
#include "DllMacro.h"
|
||||
|
||||
@@ -30,7 +31,7 @@ class ElidedLabel;
|
||||
class QPaintEvent;
|
||||
class QBoxLayout;
|
||||
|
||||
class DLLEXPORT BasicHeader : public BackgroundWidget
|
||||
class DLLEXPORT BasicHeader : public BackgroundWidget, private TomahawkUtils::DpiScaler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
Reference in New Issue
Block a user