summaryrefslogtreecommitdiffstats
path: root/korn/kornaccountcfgimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/kornaccountcfgimpl.cpp')
-rw-r--r--korn/kornaccountcfgimpl.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/korn/kornaccountcfgimpl.cpp b/korn/kornaccountcfgimpl.cpp
index f4980ca97..43493d998 100644
--- a/korn/kornaccountcfgimpl.cpp
+++ b/korn/kornaccountcfgimpl.cpp
@@ -29,15 +29,15 @@
#include <klineedit.h>
#include <kurlrequester.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qptrvector.h>
-#include <qlayout.h>
-#include <qmap.h>
-#include <qlabel.h>
-#include <qwidget.h>
-
-KornAccountCfgImpl::KornAccountCfgImpl( QWidget * parent, const char * name )
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqptrvector.h>
+#include <tqlayout.h>
+#include <tqmap.h>
+#include <tqlabel.h>
+#include <tqwidget.h>
+
+KornAccountCfgImpl::KornAccountCfgImpl( TQWidget * parent, const char * name )
: KornAccountCfg( parent, name ),
_config( 0 ),
_fields( 0 ),
@@ -47,10 +47,10 @@ KornAccountCfgImpl::KornAccountCfgImpl( QWidget * parent, const char * name )
_vlayout( 0 ),
_protocolLayout( 0 ),
_groupBoxes( 0 ),
- _accountinput( new QPtrList< AccountInput >() )
+ _accountinput( new TQPtrList< AccountInput >() )
{
- connect( parent, SIGNAL( okClicked() ), this, SLOT( slotOK() ) );
- connect( parent, SIGNAL( cancelClicked() ), this, SLOT( slotCancel() ) );
+ connect( parent, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOK() ) );
+ connect( parent, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( slotCancel() ) );
this->cbProtocol->insertStringList( Protocols::getProtocols() );
@@ -63,7 +63,7 @@ KornAccountCfgImpl::~KornAccountCfgImpl()
delete _accountinput;
}
-void KornAccountCfgImpl::readConfig( KConfigGroup *config, QMap< QString, QString > *entries, int boxnr, int accountnr )
+void KornAccountCfgImpl::readConfig( KConfigGroup *config, TQMap< TQString, TQString > *entries, int boxnr, int accountnr )
{
AccountInput *input;
@@ -108,8 +108,8 @@ void KornAccountCfgImpl::writeConfig()
_config->writeEntry( "protocol", this->cbProtocol->currentText() );
- QMap< QString, QString > *map = new QMap< QString, QString >;
- QMap< QString, QString >::ConstIterator it;
+ TQMap< TQString, TQString > *map = new TQMap< TQString, TQString >;
+ TQMap< TQString, TQString >::ConstIterator it;
for( input = _accountinput->first(); input; input = _accountinput->next() )
map->insert( input->configName(), input->value() );
@@ -149,8 +149,8 @@ void KornAccountCfgImpl::slotSSLChanged()
ssl = true;
for( input = _accountinput->first(); input; input = _accountinput->next() )
- if( input->configName() == "port" && ( input->value() == QString::number( protocol->defaultPort( !ssl ) ) ) )
- input->setValue( QString::number( protocol->defaultPort( ssl ) ) );
+ if( input->configName() == "port" && ( input->value() == TQString::number( protocol->defaultPort( !ssl ) ) ) )
+ input->setValue( TQString::number( protocol->defaultPort( ssl ) ) );
}
void KornAccountCfgImpl::slotOK()
@@ -162,10 +162,10 @@ void KornAccountCfgImpl::slotCancel()
{
}
-void KornAccountCfgImpl::slotProtocolChanged( const QString& proto )
+void KornAccountCfgImpl::slotProtocolChanged( const TQString& proto )
{
const Protocol *protocol = Protocols::getProto( proto );
- QStringList *groupBoxes = new QStringList;
+ TQStringList *groupBoxes = new QStringList;
int counter = 1;
protocol->configFillGroupBoxes( groupBoxes );
@@ -174,21 +174,21 @@ void KornAccountCfgImpl::slotProtocolChanged( const QString& proto )
delete _groupBoxes;
delete _protocolLayout;
delete _vlayout;
- _vlayout = new QVBoxLayout( this->server_tab, groupBoxes->count() + 1 );
+ _vlayout = new TQVBoxLayout( this->server_tab, groupBoxes->count() + 1 );
_vlayout->setSpacing( 10 );
_vlayout->setMargin( 10 );
- _protocolLayout = new QHBoxLayout( _vlayout );
+ _protocolLayout = new TQHBoxLayout( _vlayout );
_protocolLayout->addWidget( this->lbProtocol );
_protocolLayout->addWidget( this->cbProtocol );
- QStringList::iterator it;
+ TQStringList::iterator it;
counter = 0;
- _groupBoxes = new QPtrVector< QWidget >( groupBoxes->count() );
+ _groupBoxes = new TQPtrVector< TQWidget >( groupBoxes->count() );
_groupBoxes->setAutoDelete( true );
for( it = groupBoxes->begin(); it != groupBoxes->end(); ++it )
{
- _groupBoxes->insert( counter, new QGroupBox( (*it), this->server_tab, "groupbox" ) );
+ _groupBoxes->insert( counter, new TQGroupBox( (*it), this->server_tab, "groupbox" ) );
_vlayout->addWidget( _groupBoxes->at( counter ) );
++counter;
}
@@ -200,7 +200,7 @@ void KornAccountCfgImpl::slotProtocolChanged( const QString& proto )
for( unsigned int groupCounter = 0; groupCounter < _groupBoxes->count(); ++groupCounter )
{
int counter = 0;
- QGridLayout *grid = new QGridLayout( _groupBoxes->at( groupCounter ), 0, 2 );
+ TQGridLayout *grid = new TQGridLayout( _groupBoxes->at( groupCounter ), 0, 2 );
grid->setSpacing( 10 );
grid->setMargin( 15 );
for( input = _accountinput->first(); input; input = _accountinput->next() )