more depricated qt functions
This commit is contained in:
@@ -366,7 +366,7 @@ void AutomationPatternView::paintEvent( QPaintEvent * )
|
||||
}
|
||||
|
||||
p.setRenderHints( QPainter::Antialiasing, false );
|
||||
p.resetMatrix();
|
||||
p.resetTransform();
|
||||
|
||||
// bar lines
|
||||
const int lineSize = 3;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user