summaryrefslogtreecommitdiffstats
path: root/amarok/src/osd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/osd.cpp')
-rw-r--r--amarok/src/osd.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/amarok/src/osd.cpp b/amarok/src/osd.cpp
index a475f33a..6e5bd7f7 100644
--- a/amarok/src/osd.cpp
+++ b/amarok/src/osd.cpp
@@ -52,7 +52,7 @@ OSDWidget::OSDWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name, WType_TopLevel | WNoAutoErase | WStyle_Customize | WX11BypassWM | WStyle_StaysOnTop )
, m_duration( 2000 )
, m_timer( new TQTimer( this ) )
- , m_alignment( Middle )
+ , m_tqalignment( Middle )
, m_screen( 0 )
, m_y( MARGIN )
, m_drawShadow( false )
@@ -118,7 +118,7 @@ OSDWidget::volChanged( unsigned char volume )
{
m_volume = true;
m_newvolume = volume;
- m_text = m_newvolume ? i18n("Volume: %1%").arg( m_newvolume ) : i18n("Mute");
+ m_text = m_newvolume ? i18n("Volume: %1%").tqarg( m_newvolume ) : i18n("Mute");
show();
}
@@ -247,7 +247,7 @@ OSDWidget::determineMetrics( const uint M )
const TQRect screen = TQApplication::desktop()->screenGeometry( m_screen );
TQPoint newPos( MARGIN, m_y );
- switch( m_alignment )
+ switch( m_tqalignment )
{
case Left:
break;
@@ -349,8 +349,8 @@ OSDWidget::render( const uint M, const TQSize &size )
const uint shadowSize = static_cast<uint>( m_scaledCover.width() / 100.0 * 6.0 );
const TQString folder = Amarok::saveLocation( "covershadow-cache/" );
- const TQString file = TQString( "shadow_albumcover%1x%2.png" ).arg( m_scaledCover.width() + shadowSize )
- .arg( m_scaledCover.height() + shadowSize );
+ const TQString file = TQString( "shadow_albumcover%1x%2.png" ).tqarg( m_scaledCover.width() + shadowSize )
+ .tqarg( m_scaledCover.height() + shadowSize );
if ( TQFile::exists( folder + file ) )
shadow.load( folder + file );
else {
@@ -395,8 +395,8 @@ OSDWidget::render( const uint M, const TQSize &size )
p.end();
pixmapGradient = TQPixmap( vol.size() );
- KPixmapEffect::gradient( pixmapGradient, colorGroup().background(),
- colorGroup().highlight(), KPixmapEffect::EllipticGradient );
+ KPixmapEffect::gradient( pixmapGradient, tqcolorGroup().background(),
+ tqcolorGroup().highlight(), KPixmapEffect::EllipticGradient );
pixmapGradient.setMask( mask );
}
@@ -580,7 +580,7 @@ OSDWidget::mousePressEvent( TQMouseEvent* )
void
OSDWidget::unsetColors()
{
- const TQColorGroup c = TQApplication::palette().active();
+ const TQColorGroup c = TQApplication::tqpalette().active();
setPaletteForegroundColor( c.highlightedText() );
setPaletteBackgroundColor( c.highlight() );
@@ -670,11 +670,11 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
if( destination.y() > maxY ) destination.ry() = maxY;
if( eGlobalPosX < (hcenter-snapZone) ) {
- m_alignment = Left;
+ m_tqalignment = Left;
destination.rx() = MARGIN;
}
else if( eGlobalPosX > (hcenter+snapZone) ) {
- m_alignment = Right;
+ m_tqalignment = Right;
destination.rx() = screen.width() - MARGIN - width();
}
else {
@@ -685,10 +685,10 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
if( eGlobalPosY >= (vcenter-snapZone) && eGlobalPosY <= (vcenter+snapZone) )
{
- m_alignment = Center;
+ m_tqalignment = Center;
destination.ry() = vcenter - height()/2;
}
- else m_alignment = Middle;
+ else m_tqalignment = Middle;
}
destination += screen.topLeft();
@@ -760,7 +760,7 @@ Amarok::OSD::show( const MetaBundle &bundle ) //slot
: ( parens.contains( column ) || parens.contains( availableTags.at( i - 1 ) ) ) ? " "
: i18n(" - ");
append += ( parens.contains( column ) ? "(%1)" : "%1" );
- text += append.arg( tags.at( column + 1 ) );
+ text += append.tqarg( tags.at( column + 1 ) );
}
}
else
@@ -849,7 +849,7 @@ Amarok::OSD::show( const MetaBundle &bundle ) //slot
void
Amarok::OSD::applySettings()
{
- setAlignment( static_cast<OSDWidget::Alignment>( AmarokConfig::osdAlignment() ) );
+ tqsetAlignment( static_cast<OSDWidget::Alignment>( AmarokConfig::osdAlignment() ) );
setDuration( AmarokConfig::osdDuration() );
#ifdef TQ_WS_X11
setEnabled( AmarokConfig::osdEnabled() );