summaryrefslogtreecommitdiffstats
path: root/amarok/src/engine/xine/xine-engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/engine/xine/xine-engine.cpp')
-rw-r--r--amarok/src/engine/xine/xine-engine.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/amarok/src/engine/xine/xine-engine.cpp b/amarok/src/engine/xine/xine-engine.cpp
index 1d80f746..8393ec94 100644
--- a/amarok/src/engine/xine/xine-engine.cpp
+++ b/amarok/src/engine/xine/xine-engine.cpp
@@ -161,7 +161,7 @@ XineEngine::makeNewStream()
m_audioPort = xine_open_audio_driver( m_xine, XineCfg::outputPlugin().local8Bit(), NULL );
if( !m_audioPort ) {
- //TODO make engine method that is the same but parents the dialog for us
+ //TODO make engine method that is the same but tqparents the dialog for us
KMessageBox::error( 0, i18n("xine was unable to initialize any audio drivers.") );
return false;
}
@@ -541,7 +541,7 @@ XineEngine::fadeOut( uint fadeLength, bool* terminate, bool exiting )
const float originalVol = Engine::Base::makeVolumeLogarithmic( m_volume ) * m_preamp;
// On shutdown, limit fadeout to 3 secs max, so that we don't risk getting killed
- const int length = exiting ? QMIN( fadeLength, 3000 ) : fadeLength;
+ const int length = exiting ? TQMIN( fadeLength, 3000 ) : fadeLength;
if( length > 0 && isPlaying )
{
@@ -654,7 +654,7 @@ XineEngine::canDecode( const KURL &url ) const
list.remove("ssa");
//HACK we also check for m4a because xine plays them but
//for some reason doesn't return the extension
- if(!list.contains("m4a"))
+ if(!list.tqcontains("m4a"))
list << "m4a";
}
@@ -669,9 +669,9 @@ XineEngine::canDecode( const KURL &url ) const
if (path.endsWith( ".part" ))
path = path.left( path.length() - 5 );
- const TQString ext = path.mid( path.findRev( '.' ) + 1 ).lower();
+ const TQString ext = path.mid( path.tqfindRev( '.' ) + 1 ).lower();
- return list.contains( ext );
+ return list.tqcontains( ext );
}
const Engine::Scope&
@@ -801,7 +801,7 @@ XineEngine::customEvent( TQCustomEvent *e )
break;
case 3001:
- emit infoMessage( (*message).arg( m_url.prettyURL() ) );
+ emit infoMessage( (*message).tqarg( m_url.prettyURL() ) );
delete message;
break;
@@ -818,7 +818,7 @@ XineEngine::customEvent( TQCustomEvent *e )
} break;
case 3004:
- emit statusText( i18n("Redirecting to: ").arg( *message ) );
+ emit statusText( i18n("Redirecting to: ").tqarg( *message ) );
load( KURL( *message ), false );
play();
delete message;
@@ -921,10 +921,10 @@ XineEngine::XineEventListener( void *p, const xine_event_t* xineEvent )
case XINE_EVENT_PROGRESS: {
xine_progress_data_t* pd = (xine_progress_data_t*)xineEvent->data;
- QString
+ TQString
msg = "%1 %2%";
- msg = msg.arg( TQString::fromUtf8( pd->description ) )
- .arg( KGlobal::locale()->formatNumber( pd->percent, 0 ) );
+ msg = msg.tqarg( TQString::fromUtf8( pd->description ) )
+ .tqarg( KGlobal::locale()->formatNumber( pd->percent, 0 ) );
TQCustomEvent *e = new TQCustomEvent( 3002 );
e->setData( new TQString( msg ) );
@@ -1102,7 +1102,7 @@ bool XineEngine::metaDataForUrl(const KURL &url, Engine::SimpleMetaBundle &b)
if( b.tracknr.isEmpty() )
b.tracknr = url.filename();
} else {
- b.title = TQString(i18n("Track %1")).arg(url.filename());
+ b.title = TQString(i18n("Track %1")).tqarg(url.filename());
b.album = i18n("AudioCD");
}
}