mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10367 Janitor: Remove unneccessary 'this' pointers
This commit is contained in:
@@ -45,9 +45,9 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
|
||||
Q_ASSERT( m_plotDefinition );
|
||||
|
||||
QVBoxLayout* mainLayout = new QVBoxLayout();
|
||||
this->setLayout( mainLayout );
|
||||
this->layout()->setMargin( 0 );
|
||||
this->layout()->setSpacing( 2 );
|
||||
setLayout( mainLayout );
|
||||
layout()->setMargin( 0 );
|
||||
layout()->setSpacing( 2 );
|
||||
|
||||
m_titleLabel = new QLabel( this );
|
||||
m_titleLabel->setWordWrap( true );
|
||||
@@ -61,10 +61,10 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
|
||||
m_titleLabel->setFont( font );
|
||||
|
||||
// White background
|
||||
QPalette pal = this->palette();
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Window, Qt::white );
|
||||
this->setAutoFillBackground( true );
|
||||
this->setPalette( pal );
|
||||
setAutoFillBackground( true );
|
||||
setPalette( pal );
|
||||
|
||||
mainLayout->addWidget( m_titleLabel );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user