diff options
Diffstat (limited to 'k9Mplayer/k9mplayer.cpp')
-rw-r--r-- | k9Mplayer/k9mplayer.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/k9Mplayer/k9mplayer.cpp b/k9Mplayer/k9mplayer.cpp index 24bc9a9..2eacf0e 100644 --- a/k9Mplayer/k9mplayer.cpp +++ b/k9Mplayer/k9mplayer.cpp @@ -1,7 +1,7 @@ #include "k9common.h" #include "k9config.h" -#include <tqlayout.h> +#include <layout.h> #include <tqslider.h> #include <kselect.h> #include "k9mplayer.h" @@ -92,9 +92,9 @@ void K9Mplayer::setTitle( const TQString & _numTitle,const TQString &_numChapter if (_numChapter !="") *m_process << "-chapter" << _numChapter; - *m_process << TQString("dvd://%1").tqarg(_numTitle); + *m_process << TQString("dvd://%1").arg(_numTitle); if (!m_process->start( KProcess::NotifyOnExit,KProcess::All)) { - KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").tqarg("mplayer") , i18n("Preview")); + KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").arg("mplayer") , i18n("Preview")); } m_canwrite=TRUE; @@ -108,7 +108,7 @@ void K9Mplayer::setTitle( const TQString & _numTitle,const TQString &_numChapter /*$SPECIALIZATION$*/ void K9Mplayer::receivedStdout (KProcess *proc, char *buffer, int buflen) { - TQString buf = TQString::tqfromLatin1(buffer, buflen); + TQString buf = TQString::fromLatin1(buffer, buflen); sscanf(buf.latin1(),"ANS_PERCENT_POSITION=%d",&m_position); if (!m_seeking && m_position>0) { slider->setValue(m_position); @@ -134,7 +134,7 @@ void K9Mplayer::slotNewPosition(int _pos,const TQTime & _time) { } void K9Mplayer::sliderReleased() { - sendCmd( TQString("seek %1 1").tqarg((int)slider->value())); + sendCmd( TQString("seek %1 1").arg((int)slider->value())); m_seeking=FALSE; } @@ -175,12 +175,12 @@ void K9Mplayer::open( k9DVD *_dvd,k9DVDTitle *_title,int chapter) { cbAudio->clear(); for (int i=0; i< _title->getaudioStreamCount();i++) { k9DVDAudioStream *aud=_title->getaudioStream(i); - cbAudio->insertItem(NULL,TQString("%1-%2").tqarg(aud->getID()).tqarg(aud->getlanguage()),-1); + cbAudio->insertItem(NULL,TQString("%1-%2").arg(aud->getID()).arg(aud->getlanguage()),-1); } for (int i=0; i< _title->getsubPictureCount();i++) { k9DVDSubtitle *sub=_title->getsubtitle(i); - cbSub->insertItem(NULL,TQString("%1-%2").tqarg(sub->getID().first()).tqarg(sub->getlanguage()),-1); + cbSub->insertItem(NULL,TQString("%1-%2").arg(sub->getID().first()).arg(sub->getlanguage()),-1); } if(_title->getaspectRatio()=="16:9") @@ -207,12 +207,12 @@ void K9Mplayer::titleChanged() {} void K9Mplayer::cbAudioActivated( int _value) { if (m_dvdTitle) { int value=m_dvdTitle->getaudioStream( _value)->getStreamId(); - sendCmd(TQString( "switch_audio %1").tqarg(value)); + sendCmd(TQString( "switch_audio %1").arg(value)); } } void K9Mplayer::cbSubActivated( int _value) { - sendCmd(TQString("sub_select %1").tqarg(_value)); + sendCmd(TQString("sub_select %1").arg(_value)); } |