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/korncfgimpl.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/korncfgimpl.cpp')
-rw-r--r-- | korn/korncfgimpl.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/korn/korncfgimpl.cpp b/korn/korncfgimpl.cpp index df4264643..487c48ba2 100644 --- a/korn/korncfgimpl.cpp +++ b/korn/korncfgimpl.cpp @@ -35,10 +35,10 @@ /* - * parent should be of type KDialogBase + * tqparent should be of type KDialogBase */ -KornCfgImpl::KornCfgImpl( TQWidget * parent, const char * name ) - : KornCfgWidget( parent, name ), +KornCfgImpl::KornCfgImpl( TQWidget * tqparent, const char * name ) + : KornCfgWidget( tqparent, name ), _config( new KConfig( "kornrc" ) ), _base( 0 ) { @@ -47,9 +47,9 @@ KornCfgImpl::KornCfgImpl( TQWidget * parent, const char * name ) elbBoxes->setConfig( _config ); elbBoxes->setTitle( i18n( "Boxes" ) ); - connect( parent, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOK() ) ); - connect( parent, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( slotCancel() ) ); - connect( parent, TQT_SIGNAL( applyClicked() ), this, TQT_SLOT( slotApply() ) ); + connect( tqparent, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOK() ) ); + connect( tqparent, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( slotCancel() ) ); + connect( tqparent, TQT_SIGNAL( applyClicked() ), this, TQT_SLOT( slotApply() ) ); connect( elbBoxes, TQT_SIGNAL( elementsSwapped( int, int ) ), this, TQT_SLOT( slotElementsSwapped( int, int ) ) ); connect( elbBoxes, TQT_SIGNAL( elementDeleted( int ) ), this, TQT_SLOT( slotElementDeleted( int ) ) ); @@ -131,14 +131,14 @@ void KornCfgImpl::slotSetDefaults( const TQString& name, const int index, KConfi config->writeEntry( "hasnewicon", false ); config->writeEntry( "hasnormalanim", false ); config->writeEntry( "hasnewanim", false ); - config->writeEntry( "normalfgcolour", Qt::black ); - config->writeEntry( "newfgcolour", Qt::black ); - config->writeEntry( "normalbgcolour", TQString::null ); - config->writeEntry( "newbgcolour", TQString::null ); - config->writeEntry( "normalicon", TQString::null ); - config->writeEntry( "newicon", TQString::null ); - config->writeEntry( "normalanim", TQString::null ); - config->writeEntry( "newanim", TQString::null ); + config->writeEntry( "normalfgcolour", TQt::black ); + config->writeEntry( "newfgcolour", TQt::black ); + config->writeEntry( "normalbgcolour", TQString() ); + config->writeEntry( "newbgcolour", TQString() ); + config->writeEntry( "normalicon", TQString() ); + config->writeEntry( "newicon", TQString() ); + config->writeEntry( "normalanim", TQString() ); + config->writeEntry( "newanim", TQString() ); config->writeEntry( "leftrecheck", true ); config->writeEntry( "middlerecheck", false ); config->writeEntry( "rightrecheck", false ); @@ -164,13 +164,13 @@ void KornCfgImpl::slotSetDefaults( const TQString& name, const int index, KConfi config->setGroup( TQString( "korn-%1-0" ).arg( index ) ); config->writeEntry( "name", name ); config->writeEntry( "protocol", "mbox" ); - config->writeEntry( "server", TQString::null ); - config->writeEntry( "port", TQString::null ); - config->writeEntry( "username", TQString::null ); + config->writeEntry( "server", 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", "" ); |