summaryrefslogtreecommitdiffstats
path: root/amarok/src/systray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/systray.cpp')
-rw-r--r--amarok/src/systray.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/amarok/src/systray.cpp b/amarok/src/systray.cpp
index 81e80f78..7bfa39e3 100644
--- a/amarok/src/systray.cpp
+++ b/amarok/src/systray.cpp
@@ -26,7 +26,7 @@ namespace Amarok
static TQPixmap
loadOverlay( const char *iconName, int iconWidth )
{
- return TQImage( locate( "data", TQString( "amarok/images/b_%1.png" ).tqarg( iconName ) ), "PNG" ).smoothScale( ((iconWidth/2)-(iconWidth/20)), ((iconWidth/2)-(iconWidth/20)) );
+ return TQImage( locate( "data", TQString( "amarok/images/b_%1.png" ).arg( iconName ) ), "PNG" ).smoothScale( ((iconWidth/2)-(iconWidth/20)), ((iconWidth/2)-(iconWidth/20)) );
}
}
@@ -146,12 +146,12 @@ Amarok::TrayIcon::engineStateChanged( Engine::State state, Engine::State /*oldSt
if( AmarokConfig::animateTrayIcon() )
blinkTimerID = startTimer( 1500 ); // start 'blink' timer
- paintIcon( mergeLevel, true ); // tqrepaint the icon
+ paintIcon( mergeLevel, true ); // repaint the icon
break;
case Engine::Empty:
overlayVisible = false;
- paintIcon( -1, true ); // tqrepaint the icon
+ paintIcon( -1, true ); // repaint the icon
// fall through to default:
default:
setLastFm( false );
@@ -175,7 +175,7 @@ Amarok::TrayIcon::engineTrackPositionChanged( long position, bool /*userSeek*/ )
void
Amarok::TrayIcon::paletteChange( const TQPalette & op )
{
- if ( tqpalette().active().highlight() == op.active().highlight() || alternateIcon.isNull() )
+ if ( palette().active().highlight() == op.active().highlight() || alternateIcon.isNull() )
return;
alternateIcon.resize( 0, 0 );
@@ -209,7 +209,7 @@ Amarok::TrayIcon::paintIcon( int mergePixels, bool force )
// eros: this looks cool with dark red blue or green but sucks with
// other colors (such as kde default's pale pink..). maybe the effect
// or the blended color has to be changed..
- TQColor saturatedColor = tqpalette().active().highlight();
+ TQColor saturatedColor = palette().active().highlight();
int hue, sat, value;
saturatedColor.getHsv( &hue, &sat, &value );
saturatedColor.setHsv( hue, sat > 200 ? 200 : sat, value < 100 ? 100 : value );