From ba2a3ce341c0c71bbbcf350fcbcd60c552220b31 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:23:13 -0600 Subject: Rename obsolete tq methods to standard names --- knotes/knote.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'knotes/knote.cpp') diff --git a/knotes/knote.cpp b/knotes/knote.cpp index e22ab4285..2b0ae9599 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -1020,7 +1020,7 @@ void KNote::createFold() TQPixmap fold( 15, 15 ); TQPainter foldp( &fold ); foldp.setPen( TQt::NoPen ); - foldp.setBrush( tqpalette().active().dark() ); + foldp.setBrush( palette().active().dark() ); TQPointArray foldpoints( 3 ); foldpoints.putPoints( 0, 3, 0, 0, 14, 0, 0, 14 ); foldp.drawPolygon( foldpoints ); @@ -1042,7 +1042,7 @@ void KNote::updateFocus() { if ( hasFocus() ) { - m_label->setBackgroundColor( tqpalette().active().shadow() ); + m_label->setBackgroundColor( palette().active().shadow() ); m_button->show(); if ( !m_editor->isReadOnly() ) @@ -1081,11 +1081,11 @@ void KNote::updateFocus() if ( s_ppOffset ) { - m_label->setBackgroundColor( tqpalette().active().midlight() ); + m_label->setBackgroundColor( palette().active().midlight() ); m_fold->show(); } else - m_label->setBackgroundColor( tqpalette().active().background() ); + m_label->setBackgroundColor( palette().active().background() ); } } @@ -1138,7 +1138,7 @@ void KNote::updateBackground( int y_offset ) TQImage grad_img( w, h, 32 ); TQRgb rgbcol; - TQColor bg = tqpalette().active().background(); + TQColor bg = palette().active().background(); for ( int i = 0; i < h; ++i ) { @@ -1172,7 +1172,7 @@ void KNote::updateLayout() if ( s_ppOffset ) { if ( !m_editor->paper().pixmap() ) // just changed the style - setColor( tqpalette().active().foreground(), tqpalette().active().background() ); + setColor( palette().active().foreground(), palette().active().background() ); m_pushpin->show(); setFrameStyle( Panel | Raised ); @@ -1185,7 +1185,7 @@ void KNote::updateLayout() else { if ( m_editor->paper().pixmap() ) // just changed the style - setColor( tqpalette().active().foreground(), tqpalette().active().background() ); + setColor( palette().active().foreground(), palette().active().background() ); setFrameStyle( WinPanel | Raised ); m_pushpin->hide(); -- cgit v1.2.1