diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korn/kornboxcfgimpl.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/kornboxcfgimpl.cpp')
-rw-r--r-- | korn/kornboxcfgimpl.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/korn/kornboxcfgimpl.cpp b/korn/kornboxcfgimpl.cpp index f7c1845f7..58ffd4daf 100644 --- a/korn/kornboxcfgimpl.cpp +++ b/korn/kornboxcfgimpl.cpp @@ -38,8 +38,8 @@ class KConfig; #include <tqlabel.h> #include <tqstring.h> -KornBoxCfgImpl::KornBoxCfgImpl( TQWidget * parent, const char * name ) - : KornBoxCfg( parent, name ), +KornBoxCfgImpl::KornBoxCfgImpl( TQWidget * tqparent, const char * name ) + : KornBoxCfg( tqparent, name ), _config( 0 ), _base( 0 ), _index( -1 ) @@ -56,8 +56,8 @@ KornBoxCfgImpl::KornBoxCfgImpl( TQWidget * parent, const char * name ) if( lbRight->text() == "Right" ) lbRight->setText( i18n( "Right" ) ); - connect( parent, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOK() ) ); - connect( parent, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( slotCancel() ) ); + connect( tqparent, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOK() ) ); + connect( tqparent, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( slotCancel() ) ); elbAccounts->setTitle( i18n( "Accounts" ) ); @@ -100,13 +100,13 @@ void KornBoxCfgImpl::writeConfig( KConfig * config, const int index ) void KornBoxCfgImpl::readViewConfig() { this->chNormalText->setChecked(_config->readBoolEntry ( "hasnormalfgcolour", true ) ); - this->cbNormalText->setColor( _config->readColorEntry( "normalfgcolour", &Qt::black ) ); + this->cbNormalText->setColor( _config->readColorEntry( "normalfgcolour", &TQt::black ) ); this->chNewText->setChecked( _config->readBoolEntry ( "hasnewfgcolour", true ) ); - this->cbNewText->setColor( _config->readColorEntry( "newfgcolour", &Qt::black ) ); + this->cbNewText->setColor( _config->readColorEntry( "newfgcolour", &TQt::black ) ); this->chNormalBack->setChecked(_config->readBoolEntry ( "hasnormalbgcolour", false ) ); - this->cbNormalBack->setColor( _config->readColorEntry( "normalbgcolour", &Qt::white ) ); + this->cbNormalBack->setColor( _config->readColorEntry( "normalbgcolour", &TQt::white ) ); this->chNewBack->setChecked( _config->readBoolEntry ( "hasnewbgcolour", false ) ); - this->cbNewBack->setColor( _config->readColorEntry( "newbgcolour", &Qt::white ) ); + this->cbNewBack->setColor( _config->readColorEntry( "newbgcolour", &TQt::white ) ); this->chNormalIcon->setChecked(_config->readBoolEntry( "hasnormalicon", false ) ); this->ibNormalIcon->setIcon( _config->readEntry ( "normalicon", "" ) ); @@ -274,13 +274,13 @@ void KornBoxCfgImpl::slotSetDefaults( const TQString& name, const int, KConfig* { config->writeEntry( "name", name ); config->writeEntry( "protocol", "mbox" ); - config->writeEntry( "host", TQString::null ); - config->writeEntry( "port", TQString::null ); - config->writeEntry( "username", TQString::null ); + config->writeEntry( "host", TQString() ); + config->writeEntry( "port", TQString() ); + config->writeEntry( "username", TQString() ); config->writeEntry( "mailbox", "/var/spool/mail/" ); config->writeEntry( "savepassword", 0 ); - config->writeEntry( "password", TQString::null ); - config->writeEntry( "auth", TQString::null ); + config->writeEntry( "password", TQString() ); + config->writeEntry( "auth", TQString() ); config->writeEntry( "interval", 300 ); config->writeEntry( "boxsettings", true ); config->writeEntry( "command", "" ); |