summaryrefslogtreecommitdiffstats
path: root/kaddressbook/soundwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/soundwidget.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/soundwidget.cpp')
-rw-r--r--kaddressbook/soundwidget.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kaddressbook/soundwidget.cpp b/kaddressbook/soundwidget.cpp
index 74b8137ef..ca0a9bfde 100644
--- a/kaddressbook/soundwidget.cpp
+++ b/kaddressbook/soundwidget.cpp
@@ -31,54 +31,54 @@
#include <ktempfile.h>
#include <kurlrequester.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
#include "soundwidget.h"
-SoundWidget::SoundWidget( KABC::AddressBook *ab, QWidget *parent, const char *name )
+SoundWidget::SoundWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::ContactEditorWidget( ab, parent, name ), mReadOnly( false )
{
- QGridLayout *topLayout = new QGridLayout( this, 2, 3, KDialog::marginHint(),
+ TQGridLayout *topLayout = new TQGridLayout( this, 2, 3, KDialog::marginHint(),
KDialog::spacingHint() );
- QLabel *label = new QLabel( this );
+ TQLabel *label = new TQLabel( this );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "multimedia",
KIcon::Desktop, KIcon::SizeMedium ) );
label->setAlignment( Qt::AlignTop );
topLayout->addMultiCellWidget( label, 0, 1, 0, 0 );
- mPlayButton = new QPushButton( i18n( "Play" ), this );
+ mPlayButton = new TQPushButton( i18n( "Play" ), this );
mPlayButton->setEnabled( false );
topLayout->addWidget( mPlayButton, 0, 1 );
mSoundUrl = new KURLRequester( this );
topLayout->addWidget( mSoundUrl, 0, 2 );
- mUseSoundUrl = new QCheckBox( i18n( "Store as URL" ), this );
+ mUseSoundUrl = new TQCheckBox( i18n( "Store as URL" ), this );
mUseSoundUrl->setEnabled( false );
topLayout->addWidget( mUseSoundUrl, 1, 2 );
- connect( mSoundUrl, SIGNAL( textChanged( const QString& ) ),
- SLOT( setModified() ) );
- connect( mSoundUrl, SIGNAL( textChanged( const QString& ) ),
- SLOT( urlChanged( const QString& ) ) );
- connect( mUseSoundUrl, SIGNAL( toggled( bool ) ),
- SLOT( setModified() ) );
- connect( mUseSoundUrl, SIGNAL( toggled( bool ) ),
- mPlayButton, SLOT( setDisabled( bool ) ) );
- connect( mSoundUrl, SIGNAL( urlSelected( const QString& ) ),
- SLOT( loadSound() ) );
- connect( mSoundUrl, SIGNAL( urlSelected( const QString& ) ),
- SLOT( updateGUI() ) );
- connect( mPlayButton, SIGNAL( clicked() ),
- SLOT( playSound() ) );
-
- QWhatsThis::add( this, i18n( "This field stores a sound file which contains the name of the contact to clarify the pronunciation." ) );
- QWhatsThis::add( mUseSoundUrl, i18n( "Save only the URL to the sound file, not the whole object." ) );
+ connect( mSoundUrl, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( setModified() ) );
+ connect( mSoundUrl, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( urlChanged( const TQString& ) ) );
+ connect( mUseSoundUrl, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( setModified() ) );
+ connect( mUseSoundUrl, TQT_SIGNAL( toggled( bool ) ),
+ mPlayButton, TQT_SLOT( setDisabled( bool ) ) );
+ connect( mSoundUrl, TQT_SIGNAL( urlSelected( const TQString& ) ),
+ TQT_SLOT( loadSound() ) );
+ connect( mSoundUrl, TQT_SIGNAL( urlSelected( const TQString& ) ),
+ TQT_SLOT( updateGUI() ) );
+ connect( mPlayButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( playSound() ) );
+
+ TQWhatsThis::add( this, i18n( "This field stores a sound file which contains the name of the contact to clarify the pronunciation." ) );
+ TQWhatsThis::add( mUseSoundUrl, i18n( "Save only the URL to the sound file, not the whole object." ) );
}
SoundWidget::~SoundWidget()
@@ -138,7 +138,7 @@ void SoundWidget::playSound()
void SoundWidget::loadSound()
{
- QString fileName;
+ TQString fileName;
KURL url( mSoundUrl->url() );
@@ -150,7 +150,7 @@ void SoundWidget::loadSound()
else if ( !KIO::NetAccess::download( url, fileName, this ) )
return;
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
return;
@@ -167,7 +167,7 @@ void SoundWidget::updateGUI()
mUseSoundUrl->setEnabled( !mReadOnly );
}
-void SoundWidget::urlChanged( const QString &url )
+void SoundWidget::urlChanged( const TQString &url )
{
if ( !mUseSoundUrl->isChecked() ) {
bool state = !url.isEmpty();