summaryrefslogtreecommitdiffstats
path: root/kmail/kmfawidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfawidgets.cpp')
-rw-r--r--kmail/kmfawidgets.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kmail/kmfawidgets.cpp b/kmail/kmfawidgets.cpp
index 558fbe0db..f5426f255 100644
--- a/kmail/kmfawidgets.cpp
+++ b/kmail/kmfawidgets.cpp
@@ -16,7 +16,7 @@
#include <kfiledialog.h>
#include <kstandarddirs.h>
-#include <qlayout.h>
+#include <tqlayout.h>
//=============================================================================
//
@@ -24,20 +24,20 @@
//
//=============================================================================
-KMFilterActionWithAddressWidget::KMFilterActionWithAddressWidget( QWidget* parent, const char* name )
- : QWidget( parent, name )
+KMFilterActionWithAddressWidget::KMFilterActionWithAddressWidget( TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
- QHBoxLayout *hbl = new QHBoxLayout(this);
+ TQHBoxLayout *hbl = new TQHBoxLayout(this);
hbl->setSpacing(4);
mLineEdit = new KLineEdit(this);
hbl->addWidget( mLineEdit, 1 /*stretch*/ );
- mBtn = new QPushButton( QString::null ,this );
+ mBtn = new TQPushButton( TQString::null ,this );
mBtn->setPixmap( BarIcon( "contents", KIcon::SizeSmall ) );
mBtn->setFixedHeight( mLineEdit->sizeHint().height() );
hbl->addWidget( mBtn );
- connect( mBtn, SIGNAL(clicked()),
- this, SLOT(slotAddrBook()) );
+ connect( mBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddrBook()) );
}
void KMFilterActionWithAddressWidget::slotAddrBook()
@@ -47,12 +47,12 @@ void KMFilterActionWithAddressWidget::slotAddrBook()
if ( lst.empty() )
return;
- QStringList addrList;
+ TQStringList addrList;
for( KABC::Addressee::List::const_iterator it = lst.begin(); it != lst.end(); ++it )
addrList << (*it).fullEmail();
- QString txt = mLineEdit->text().stripWhiteSpace();
+ TQString txt = mLineEdit->text().stripWhiteSpace();
if ( !txt.isEmpty() ) {
if ( !txt.endsWith( "," ) )
@@ -64,20 +64,20 @@ void KMFilterActionWithAddressWidget::slotAddrBook()
mLineEdit->setText( txt + addrList.join(",") );
}
-KMSoundTestWidget::KMSoundTestWidget(QWidget *parent, const char *name)
- : QWidget( parent, name)
+KMSoundTestWidget::KMSoundTestWidget(TQWidget *parent, const char *name)
+ : TQWidget( parent, name)
{
- QHBoxLayout *lay1 = new QHBoxLayout( this );
- m_playButton = new QPushButton( this, "m_playButton" );
+ TQHBoxLayout *lay1 = new TQHBoxLayout( this );
+ m_playButton = new TQPushButton( this, "m_playButton" );
m_playButton->setPixmap( SmallIcon( "1rightarrow" ) );
- connect( m_playButton, SIGNAL( clicked() ), SLOT( playSound() ));
+ connect( m_playButton, TQT_SIGNAL( clicked() ), TQT_SLOT( playSound() ));
lay1->addWidget( m_playButton );
m_urlRequester = new KURLRequester( this );
lay1->addWidget( m_urlRequester );
- connect( m_urlRequester, SIGNAL( openFileDialog( KURLRequester * )),
- SLOT( openSoundDialog( KURLRequester * )));
- connect( m_urlRequester->lineEdit(), SIGNAL( textChanged ( const QString & )), SLOT( slotUrlChanged(const QString & )));
+ connect( m_urlRequester, TQT_SIGNAL( openFileDialog( KURLRequester * )),
+ TQT_SLOT( openSoundDialog( KURLRequester * )));
+ connect( m_urlRequester->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & )), TQT_SLOT( slotUrlChanged(const TQString & )));
slotUrlChanged(m_urlRequester->lineEdit()->text() );
}
@@ -85,7 +85,7 @@ KMSoundTestWidget::~KMSoundTestWidget()
{
}
-void KMSoundTestWidget::slotUrlChanged(const QString &_text )
+void KMSoundTestWidget::slotUrlChanged(const TQString &_text )
{
m_playButton->setEnabled( !_text.isEmpty());
}
@@ -100,18 +100,18 @@ void KMSoundTestWidget::openSoundDialog( KURLRequester * )
KFileDialog *fileDialog = m_urlRequester->fileDialog();
fileDialog->setCaption( i18n("Select Sound File") );
- QStringList filters;
+ TQStringList filters;
filters << "audio/x-wav" << "audio/x-mp3" << "application/x-ogg"
<< "audio/x-adpcm";
fileDialog->setMimeFilter( filters );
- QStringList soundDirs = KGlobal::dirs()->resourceDirs( "sound" );
+ TQStringList soundDirs = KGlobal::dirs()->resourceDirs( "sound" );
if ( !soundDirs.isEmpty() ) {
KURL soundURL;
- QDir dir;
- dir.setFilter( QDir::Files | QDir::Readable );
- QStringList::ConstIterator it = soundDirs.begin();
+ TQDir dir;
+ dir.setFilter( TQDir::Files | TQDir::Readable );
+ TQStringList::ConstIterator it = soundDirs.begin();
while ( it != soundDirs.end() ) {
dir = *it;
if ( dir.isReadable() && dir.count() > 2 ) {
@@ -127,23 +127,23 @@ void KMSoundTestWidget::openSoundDialog( KURLRequester * )
void KMSoundTestWidget::playSound()
{
- QString parameter= m_urlRequester->lineEdit()->text();
+ TQString parameter= m_urlRequester->lineEdit()->text();
if ( parameter.isEmpty() )
return ;
- QString play = parameter;
- QString file = QString::fromLatin1("file:");
+ TQString play = parameter;
+ TQString file = TQString::fromLatin1("file:");
if (parameter.startsWith(file))
play = parameter.mid(file.length());
- KAudioPlayer::play(QFile::encodeName(play));
+ KAudioPlayer::play(TQFile::encodeName(play));
}
-QString KMSoundTestWidget::url() const
+TQString KMSoundTestWidget::url() const
{
return m_urlRequester->lineEdit()->text();
}
-void KMSoundTestWidget::setUrl(const QString & url)
+void KMSoundTestWidget::setUrl(const TQString & url)
{
m_urlRequester->lineEdit()->setText(url);
}