summaryrefslogtreecommitdiffstats
path: root/renamedlgplugins/audio/audiopreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'renamedlgplugins/audio/audiopreview.cpp')
-rw-r--r--renamedlgplugins/audio/audiopreview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/renamedlgplugins/audio/audiopreview.cpp b/renamedlgplugins/audio/audiopreview.cpp
index b618adb..18e25d1 100644
--- a/renamedlgplugins/audio/audiopreview.cpp
+++ b/renamedlgplugins/audio/audiopreview.cpp
@@ -33,8 +33,8 @@
#include "audiopreview.h"
-AudioPreview::AudioPreview( TQWidget *parent, const char *name, const TQString &fileName, const TQString &mimeType)
- : TQVBox( parent, name )
+AudioPreview::AudioPreview( TQWidget *tqparent, const char *name, const TQString &fileName, const TQString &mimeType)
+ : TQVBox( tqparent, name )
{
m_isTempFile = false;
pic = 0;
@@ -72,7 +72,7 @@ AudioPreview::~AudioPreview()
void AudioPreview::initView( const TQString& mimeType )
{
KURL url = KURL::fromPathOrURL( m_localFile );
- pic->setText( TQString::null );
+ pic->setText( TQString() );
pic->setPixmap(KMimeType::pixmapForURL( url ));
pic->adjustSize();
@@ -89,33 +89,33 @@ void AudioPreview::initView( const TQString& mimeType )
KSqueezedTextLabel *sl;
sl = new KSqueezedTextLabel(this);
- sl->setText(i18n("Artist: %1\n").arg(info.item("Artist").value().toString()));
+ sl->setText(i18n("Artist: %1\n").tqarg(info.item("Artist").value().toString()));
sl = new KSqueezedTextLabel(this);
- sl->setText(i18n("Title: %1\n").arg(info.item("Title").value().toString()));
+ sl->setText(i18n("Title: %1\n").tqarg(info.item("Title").value().toString()));
sl = new KSqueezedTextLabel(this);
- sl->setText(i18n("Comment: %1\n").arg(info.item("Comment").value().toString()));
+ sl->setText(i18n("Comment: %1\n").tqarg(info.item("Comment").value().toString()));
- desc.append(i18n("Biterate: 160 kbits/s", "Bitrate: %1 %2\n").arg( info.item("Bitrate").value().toString() ).arg( info.item("Bitrate").suffix() ));
+ desc.append(i18n("Biterate: 160 kbits/s", "Bitrate: %1 %2\n").tqarg( info.item("Bitrate").value().toString() ).tqarg( info.item("Bitrate").suffix() ));
}
- desc.append(i18n("Sample rate: %1 %2\n").arg( info.item("Sample Rate").value().toString() ).arg( info.item("Sample Rate").suffix() ));
+ desc.append(i18n("Sample rate: %1 %2\n").tqarg( info.item("Sample Rate").value().toString() ).tqarg( info.item("Sample Rate").suffix() ));
desc.append(i18n("Length: "));
/* Calculate length in mm:ss format */
int length = info.item("Length").value().toInt();
if (length/60 < 10)
desc.append("0");
- desc.append(TQString("%1:").arg(length/60, 0, 10));
+ desc.append(TQString("%1:").tqarg(length/60, 0, 10));
if (length%60 < 10)
desc.append("0");
- desc.append(TQString("%1\n").arg(length%60, 0, 10));
+ desc.append(TQString("%1\n").tqarg(length%60, 0, 10));
}
description = new TQLabel(this);
description->setText( desc );
description->adjustSize();
- m_player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", TQString::null, this );
+ m_player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", TQString(), TQT_TQOBJECT(this) );
if ( m_player )
{
static_cast<KParts::ReadOnlyPart*>(m_player)->openURL( url );
@@ -125,7 +125,7 @@ void AudioPreview::initView( const TQString& mimeType )
void AudioPreview::downloadFile( const TQString& url )
{
- if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), m_localFile , topLevelWidget()) )
+ if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), m_localFile , tqtopLevelWidget()) )
{
m_isTempFile = true;
initView( KMimeType::findByPath( m_localFile )->name() );