summaryrefslogtreecommitdiffstats
path: root/kresources/exchange/resourceexchangeconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/exchange/resourceexchangeconfig.cpp')
-rw-r--r--kresources/exchange/resourceexchangeconfig.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kresources/exchange/resourceexchangeconfig.cpp b/kresources/exchange/resourceexchangeconfig.cpp
index e2277fa05..5bb9677b6 100644
--- a/kresources/exchange/resourceexchangeconfig.cpp
+++ b/kresources/exchange/resourceexchangeconfig.cpp
@@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kdebug.h>
@@ -33,48 +33,48 @@
using namespace KCal;
-ResourceExchangeConfig::ResourceExchangeConfig( QWidget* parent, const char* name )
+ResourceExchangeConfig::ResourceExchangeConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name )
{
resize( 245, 115 );
- QGridLayout *mainLayout = new QGridLayout( this, 8, 3 );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 8, 3 );
- QLabel *label = new QLabel( i18n( "Host:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Host:" ), this );
mHostEdit = new KLineEdit( this );
mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mHostEdit, 1, 1 );
- label = new QLabel( i18n( "Port:" ), this );
+ label = new TQLabel( i18n( "Port:" ), this );
mPortEdit = new KLineEdit( this );
mainLayout->addWidget( label, 2, 0 );
mainLayout->addWidget( mPortEdit, 2, 1 );
- label = new QLabel( i18n( "Account:" ), this );
+ label = new TQLabel( i18n( "Account:" ), this );
mAccountEdit = new KLineEdit( this );
mainLayout->addWidget( label, 3, 0 );
mainLayout->addWidget( mAccountEdit, 3, 1 );
- label = new QLabel( i18n( "Password:" ), this );
+ label = new TQLabel( i18n( "Password:" ), this );
mPasswordEdit = new KLineEdit( this );
- mPasswordEdit->setEchoMode( QLineEdit::Password );
+ mPasswordEdit->setEchoMode( TQLineEdit::Password );
mainLayout->addWidget( label, 4, 0 );
mainLayout->addWidget( mPasswordEdit, 4, 1 );
- mAutoMailbox = new QCheckBox( i18n( "Determine mailbox &automatically" ), this );
+ mAutoMailbox = new TQCheckBox( i18n( "Determine mailbox &automatically" ), this );
mainLayout->addMultiCellWidget( mAutoMailbox, 5, 5, 0, 1 );
- connect( mAutoMailbox, SIGNAL(toggled(bool)), this, SLOT(slotToggleAuto(bool)) );
+ connect( mAutoMailbox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAuto(bool)) );
mMailboxEdit = new KLineEdit( this );
- mainLayout->addWidget( new QLabel( i18n( "Mailbox URL:" ), this ), 6, 0 );
+ mainLayout->addWidget( new TQLabel( i18n( "Mailbox URL:" ), this ), 6, 0 );
mainLayout->addWidget( mMailboxEdit, 6, 1 );
- mTryFindMailbox = new QPushButton( i18n( "&Find" ), this );
+ mTryFindMailbox = new TQPushButton( i18n( "&Find" ), this );
mainLayout->addWidget( mTryFindMailbox, 6, 2 );
- connect( mTryFindMailbox, SIGNAL(clicked()), this, SLOT(slotFindClicked()) );
+ connect( mTryFindMailbox, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFindClicked()) );
- label = new QLabel( i18n( "Cache timeout:" ), this );
+ label = new TQLabel( i18n( "Cache timeout:" ), this );
mCacheEdit = new KIntNumInput( this );
- connect(mCacheEdit, SIGNAL(valueChanged( int )), SLOT(slotCacheEditChanged( int )));
+ connect(mCacheEdit, TQT_SIGNAL(valueChanged( int )), TQT_SLOT(slotCacheEditChanged( int )));
mCacheEdit->setMinValue( 0 );
mainLayout->addWidget( label, 7, 0 );
mainLayout->addWidget( mCacheEdit, 7, 1 );
@@ -101,7 +101,7 @@ void ResourceExchangeConfig::saveSettings( KRES::Resource *resource )
ResourceExchange* res = dynamic_cast<ResourceExchange*>( resource );
if (res) {
if ( mAutoMailbox->isChecked() ) {
- mMailboxEdit->setText( QString::null );
+ mMailboxEdit->setText( TQString::null );
slotFindClicked();
if ( mMailboxEdit->text().isNull() ) {
kdWarning() << "Could not find Exchange mailbox URL, incomplete settings!" << endl;
@@ -125,7 +125,7 @@ void ResourceExchangeConfig::slotToggleAuto( bool on )
// mTryFindMailbox->setEnabled( ! on );
}
-void ResourceExchangeConfig::slotUserChanged( const QString& /*text*/ )
+void ResourceExchangeConfig::slotUserChanged( const TQString& /*text*/ )
{
// if ( mMailboxEqualsUser->isChecked() ) {
// mMailboxEdit->setText( "webdav://" + mHostEdit->text() + "/exchange/" + text );
@@ -134,7 +134,7 @@ void ResourceExchangeConfig::slotUserChanged( const QString& /*text*/ )
void ResourceExchangeConfig::slotFindClicked()
{
- QString mailbox = KPIM::ExchangeAccount::tryFindMailbox(
+ TQString mailbox = KPIM::ExchangeAccount::tryFindMailbox(
mHostEdit->text(), mPortEdit->text(),
mAccountEdit->text(), mPasswordEdit->text() );