more depricated qt functions

This commit is contained in:
Noah Brecht
2019-07-20 21:03:48 -04:00
committed by Lukas W
parent 1b45ce5a98
commit 200d1c209c
3 changed files with 4 additions and 4 deletions

View File

@@ -366,7 +366,7 @@ void AutomationPatternView::paintEvent( QPaintEvent * )
}
p.setRenderHints( QPainter::Antialiasing, false );
p.resetMatrix();
p.resetTransform();
// bar lines
const int lineSize = 3;

View File

@@ -90,7 +90,7 @@ void GroupBox::paintEvent( QPaintEvent * pe )
p.fillRect( 0, 0, width() - 1, height() - 1, p.background() );
// outer rect
p.setPen( p.background().color().dark( 150 ) );
p.setPen( p.background().color().darker( 150 ) );
p.drawRect( 0, 0, width() - 1, height() - 1 );
// draw line below titlebar

View File

@@ -218,8 +218,8 @@ void BBTCOView::paintEvent( QPaintEvent * )
: ( m_bbTCO->m_useStyleColor ? painter.background().color()
: m_bbTCO->colorObj() ) );
lingrad.setColorAt( 0, c.light( 130 ) );
lingrad.setColorAt( 1, c.light( 70 ) );
lingrad.setColorAt( 0, c.lighter( 130 ) );
lingrad.setColorAt( 1, c.lighter( 70 ) );
// paint a black rectangle under the pattern to prevent glitches with transparent backgrounds
p.fillRect( rect(), QColor( 0, 0, 0 ) );