diff options
Diffstat (limited to 'amarok/src/analyzers/blockanalyzer.cpp')
-rw-r--r-- | amarok/src/analyzers/blockanalyzer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/amarok/src/analyzers/blockanalyzer.cpp b/amarok/src/analyzers/blockanalyzer.cpp index e6d75dea..1ebfdf0f 100644 --- a/amarok/src/analyzers/blockanalyzer.cpp +++ b/amarok/src/analyzers/blockanalyzer.cpp @@ -354,7 +354,7 @@ ensureContrast( const TQColor &bg, const TQColor &fg, uint _amount = 150 ) void BlockAnalyzer::paletteChange( const TQPalette& ) //virtual { - const TQColor bg = palette().active().background(); + const TQColor bg = tqpalette().active().background(); const TQColor fg = ensureContrast( bg, KGlobalSettings::activeTitleColor() ); m_topBarPixmap.fill( fg ); @@ -372,11 +372,11 @@ BlockAnalyzer::paletteChange( const TQPalette& ) //virtual p.fillRect( 0, y*(HEIGHT+1), WIDTH, HEIGHT, TQColor( r+int(dr*y), g+int(dg*y), b+int(db*y) ) ); { - const TQColor bg = palette().active().background().dark( 112 ); + const TQColor bg = tqpalette().active().background().dark( 112 ); //make a complimentary fadebar colour //TODO dark is not always correct, dumbo! - int h,s,v; palette().active().background().dark( 150 ).getHsv( &h, &s, &v ); + int h,s,v; tqpalette().active().background().dark( 150 ).getHsv( &h, &s, &v ); const TQColor fg( h + 120, s, v, TQColor::Hsv ); const double dr = fg.red() - bg.red(); @@ -386,7 +386,7 @@ BlockAnalyzer::paletteChange( const TQPalette& ) //virtual // Precalculate all fade-bar pixmaps for( uint y = 0; y < FADE_SIZE; ++y ) { - m_fade_bars[y].fill( palette().active().background() ); + m_fade_bars[y].fill( tqpalette().active().background() ); TQPainter f( &m_fade_bars[y] ); for( int z = 0; (uint)z < m_rows; ++z ) { const double Y = 1.0 - (log10( FADE_SIZE - y ) / log10( FADE_SIZE )); @@ -401,7 +401,7 @@ BlockAnalyzer::paletteChange( const TQPalette& ) //virtual void BlockAnalyzer::drawBackground() { - const TQColor bg = palette().active().background(); + const TQColor bg = tqpalette().active().background(); const TQColor bgdark = bg.dark( 112 ); background()->fill( bg ); @@ -430,7 +430,7 @@ BlockAnalyzer::contextMenuEvent( TQContextMenuEvent *e ) { const uint v = ids[x]; - menu.insertItem( i18n( "%1 fps" ).arg( 1000/v ), v ); + menu.insertItem( i18n( "%1 fps" ).tqarg( 1000/v ), v ); menu.setItemChecked( v, v == timeout() ); } |