summaryrefslogtreecommitdiffstats
path: root/korn/korncfgimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/korncfgimpl.cpp')
-rw-r--r--korn/korncfgimpl.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/korn/korncfgimpl.cpp b/korn/korncfgimpl.cpp
index 6860c17e..ae49765c 100644
--- a/korn/korncfgimpl.cpp
+++ b/korn/korncfgimpl.cpp
@@ -27,17 +27,17 @@
#include <kdialogbase.h>
#include <klocale.h>
-#include <qcolor.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qstring.h>
-#include <qtimer.h>
+#include <tqcolor.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqstring.h>
+#include <tqtimer.h>
/*
* parent should be of type KDialogBase
*/
-KornCfgImpl::KornCfgImpl( QWidget * parent, const char * name )
+KornCfgImpl::KornCfgImpl( TQWidget * parent, const char * name )
: KornCfgWidget( parent, name ),
_config( new KConfig( "kornrc" ) ),
_base( 0 )
@@ -47,12 +47,12 @@ KornCfgImpl::KornCfgImpl( QWidget * parent, const char * name )
elbBoxes->setConfig( _config );
elbBoxes->setTitle( i18n( "Boxes" ) );
- connect( parent, SIGNAL( okClicked() ), this, SLOT( slotOK() ) );
- connect( parent, SIGNAL( cancelClicked() ), this, SLOT( slotCancel() ) );
- connect( parent, SIGNAL( applyClicked() ), this, SLOT( slotApply() ) );
+ 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( elbBoxes, SIGNAL( elementsSwapped( int, int ) ), this, SLOT( slotElementsSwapped( int, int ) ) );
- connect( elbBoxes, SIGNAL( elementDeleted( int ) ), this, SLOT( slotElementDeleted( int ) ) );
+ connect( elbBoxes, TQT_SIGNAL( elementsSwapped( int, int ) ), this, TQT_SLOT( slotElementsSwapped( int, int ) ) );
+ connect( elbBoxes, TQT_SIGNAL( elementDeleted( int ) ), this, TQT_SLOT( slotElementDeleted( int ) ) );
readConfig();
}
@@ -74,7 +74,7 @@ void KornCfgImpl::slotEditBox()
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true );
KornBoxCfgImpl *widget = new KornBoxCfgImpl( _base, "Box Widget" );
- connect( _base, SIGNAL( finished() ), this, SLOT( slotDialogDestroyed() ) );
+ connect( _base, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotDialogDestroyed() ) );
_base->setMainWidget( widget );
widget->readConfig( _config, elbBoxes->listBox()->currentItem() );
@@ -91,10 +91,10 @@ void KornCfgImpl::slotDialogDestroyed()
void KornCfgImpl::slotElementsSwapped( int box1, int box2 )
{
int accountnumber1 = 0, accountnumber2 = 0;
- while( _config->hasGroup( QString( "korn-%1-%2" ).arg( box1 ).arg( accountnumber1 ) ) )
+ while( _config->hasGroup( TQString( "korn-%1-%2" ).arg( box1 ).arg( accountnumber1 ) ) )
++accountnumber1;
- while( _config->hasGroup( QString( "korn-%1-%2" ).arg( box2 ).arg( accountnumber2 ) ) )
+ while( _config->hasGroup( TQString( "korn-%1-%2" ).arg( box2 ).arg( accountnumber2 ) ) )
++accountnumber2;
KOrnPassword::swapKOrnWalletPasswords( box1, accountnumber1, box2, accountnumber2 );
@@ -103,14 +103,14 @@ void KornCfgImpl::slotElementsSwapped( int box1, int box2 )
void KornCfgImpl::slotElementDeleted( int box )
{
int accountnumber = 0;
- while( _config->hasGroup( QString( "korn-%1-%2" ).arg( box ).arg( accountnumber ) ) )
+ while( _config->hasGroup( TQString( "korn-%1-%2" ).arg( box ).arg( accountnumber ) ) )
{
KOrnPassword::deleteKOrnPassword( box, accountnumber );
++accountnumber;
}
}
-void KornCfgImpl::slotActivated( const QString& )
+void KornCfgImpl::slotActivated( const TQString& )
{
slotEditBox();
}
@@ -120,7 +120,7 @@ void KornCfgImpl::slotActivated( const int )
slotEditBox();
}
-void KornCfgImpl::slotSetDefaults( const QString& name, const int index, KConfig* config )
+void KornCfgImpl::slotSetDefaults( const TQString& name, const int index, KConfig* config )
{
config->writeEntry( "name", name );
config->writeEntry( "hasnormalfgcolour", true );
@@ -133,12 +133,12 @@ void KornCfgImpl::slotSetDefaults( const QString& name, const int index, KConfig
config->writeEntry( "hasnewanim", false );
config->writeEntry( "normalfgcolour", Qt::black );
config->writeEntry( "newfgcolour", Qt::black );
- config->writeEntry( "normalbgcolour", QString::null );
- config->writeEntry( "newbgcolour", QString::null );
- config->writeEntry( "normalicon", QString::null );
- config->writeEntry( "newicon", QString::null );
- config->writeEntry( "normalanim", QString::null );
- config->writeEntry( "newanim", QString::null );
+ 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( "leftrecheck", true );
config->writeEntry( "middlerecheck", false );
config->writeEntry( "rightrecheck", false );
@@ -160,17 +160,17 @@ void KornCfgImpl::slotSetDefaults( const QString& name, const int index, KConfig
config->writeEntry( "passivepopup", false );
config->writeEntry( "passivedate", false );
config->writeEntry( "numaccounts", 1 );
- config->writeEntry( "dcop", QStringList() );
- config->setGroup( QString( "korn-%1-0" ).arg( index ) );
+ config->writeEntry( "dcop", TQStringList() );
+ config->setGroup( TQString( "korn-%1-0" ).arg( index ) );
config->writeEntry( "name", name );
config->writeEntry( "protocol", "mbox" );
- config->writeEntry( "server", QString::null );
- config->writeEntry( "port", QString::null );
- config->writeEntry( "username", QString::null );
+ config->writeEntry( "server", TQString::null );
+ config->writeEntry( "port", TQString::null );
+ config->writeEntry( "username", TQString::null );
config->writeEntry( "mailbox", "/var/spool/mail/" );
config->writeEntry( "savepassword", 0 );
- config->writeEntry( "password", QString::null );
- config->writeEntry( "auth", QString::null );
+ config->writeEntry( "password", TQString::null );
+ config->writeEntry( "auth", TQString::null );
config->writeEntry( "interval", 300 );
config->writeEntry( "boxsettings", true );
config->writeEntry( "command", "" );
@@ -198,10 +198,10 @@ void KornCfgImpl::readConfig()
{
_config->setGroup( "korn" );
- QChar layout = _config->readEntry( "layout" ).stripWhiteSpace()[0].upper();
- if( layout == QChar( 'H' ) )
+ TQChar layout = _config->readEntry( "layout" ).stripWhiteSpace()[0].upper();
+ if( layout == TQChar( 'H' ) )
rbHorizontal->setChecked( true );
- else if( layout == QChar( 'V' ) )
+ else if( layout == TQChar( 'V' ) )
rbVertical->setChecked( true );
else
rbDocked->setChecked( true );
@@ -236,12 +236,12 @@ void KornCfgImpl::rewritePasswords()
int account = 0 - 1;
KConfigGroup *group;
- while( _config->hasGroup( QString( "korn-%1" ).arg( ++box ) ) )
+ while( _config->hasGroup( TQString( "korn-%1" ).arg( ++box ) ) )
{
account = 0 - 1;
- while( _config->hasGroup( QString( "korn-%1-%2" ).arg( box ).arg( ++account ) ) )
+ while( _config->hasGroup( TQString( "korn-%1-%2" ).arg( box ).arg( ++account ) ) )
{
- group = new KConfigGroup( _config, QString( "korn-%1-%2" ).arg( box ).arg( account ) );
+ group = new KConfigGroup( _config, TQString( "korn-%1-%2" ).arg( box ).arg( account ) );
KOrnPassword::rewritePassword( box, account, *group, chUseWallet->isChecked() );
delete group;
}