From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korn/kornaccountcfgimpl.cpp | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'korn/kornaccountcfgimpl.cpp') 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 #include -#include -#include -#include -#include -#include -#include -#include - -KornAccountCfgImpl::KornAccountCfgImpl( QWidget * parent, const char * name ) +#include +#include +#include +#include +#include +#include +#include + +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() ) -- cgit v1.2.1