summaryrefslogtreecommitdiffstats
path: root/korn/kornboxcfgimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/kornboxcfgimpl.cpp')
-rw-r--r--korn/kornboxcfgimpl.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/korn/kornboxcfgimpl.cpp b/korn/kornboxcfgimpl.cpp
index 6ab6ce5e0..5667a5f28 100644
--- a/korn/kornboxcfgimpl.cpp
+++ b/korn/kornboxcfgimpl.cpp
@@ -32,13 +32,13 @@ class KConfig;
#include <kicondialog.h>
#include <kurlrequester.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qlabel.h>
-#include <qstring.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqlabel.h>
+#include <tqstring.h>
-KornBoxCfgImpl::KornBoxCfgImpl( QWidget * parent, const char * name )
+KornBoxCfgImpl::KornBoxCfgImpl( TQWidget * parent, const char * name )
: KornBoxCfg( parent, name ),
_config( 0 ),
_base( 0 ),
@@ -56,13 +56,13 @@ KornBoxCfgImpl::KornBoxCfgImpl( QWidget * parent, const char * name )
if( lbRight->text() == "Right" )
lbRight->setText( i18n( "Right" ) );
- 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() ) );
elbAccounts->setTitle( i18n( "Accounts" ) );
- connect( elbAccounts, SIGNAL( elementsSwapped( int, int ) ), this, SLOT( slotAccountsSwapped( int, int ) ) );
- connect( elbAccounts, SIGNAL( elementDeleted( int ) ), this, SLOT( slotAccountDeleted( int ) ) );
+ connect( elbAccounts, TQT_SIGNAL( elementsSwapped( int, int ) ), this, TQT_SLOT( slotAccountsSwapped( int, int ) ) );
+ connect( elbAccounts, TQT_SIGNAL( elementDeleted( int ) ), this, TQT_SLOT( slotAccountDeleted( int ) ) );
}
KornBoxCfgImpl::~KornBoxCfgImpl()
@@ -78,7 +78,7 @@ void KornBoxCfgImpl::readConfig( KConfig * config, const int index )
_config = config;
_index = index;
- _config->setGroup( QString( "korn-%1" ).arg( index ) );
+ _config->setGroup( TQString( "korn-%1" ).arg( index ) );
readViewConfig();
readEventConfig();
@@ -88,7 +88,7 @@ void KornBoxCfgImpl::readConfig( KConfig * config, const int index )
void KornBoxCfgImpl::writeConfig( KConfig * config, const int index )
{
- config->setGroup( QString( "korn-%1" ).arg( index ) );
+ config->setGroup( TQString( "korn-%1" ).arg( index ) );
writeViewConfig( config );
writeEventConfig( config );
@@ -155,7 +155,7 @@ void KornBoxCfgImpl::readEventConfig()
void KornBoxCfgImpl::readAccountsConfig()
{
- elbAccounts->setGroupName( QString( "korn-%1-%2" ).arg( _index ) );
+ elbAccounts->setGroupName( TQString( "korn-%1-%2" ).arg( _index ) );
elbAccounts->setConfig( _config );
}
@@ -167,7 +167,7 @@ void KornBoxCfgImpl::readDCOPConfig()
void KornBoxCfgImpl::writeViewConfig( KConfig* config )
{
- QColor invalid;
+ TQColor invalid;
config->writeEntry( "hasnormalfgcolour", this->chNormalText->isChecked() );
config->writeEntry( "normalfgcolour", this->chNormalText->isChecked() ? this->cbNormalText->color() : invalid );
@@ -184,9 +184,9 @@ void KornBoxCfgImpl::writeViewConfig( KConfig* config )
config->writeEntry( "newicon", this->chNewIcon->isChecked() ? this->ibNewIcon->icon() : "" );
config->writeEntry( "hasnormalfont", this->chNormalFont->isChecked() );
- config->writeEntry( "normalfont", this->chNormalFont->isChecked() ? *_fonts[ 0 ] : QFont() );
+ config->writeEntry( "normalfont", this->chNormalFont->isChecked() ? *_fonts[ 0 ] : TQFont() );
config->writeEntry( "hasnewfont", this->chNewFont->isChecked() );
- config->writeEntry( "newfont", this->chNewFont->isChecked() ? *_fonts[ 1 ] : QFont() );
+ config->writeEntry( "newfont", this->chNewFont->isChecked() ? *_fonts[ 1 ] : TQFont() );
config->writeEntry( "hasnormalanim", this->chNormalAnim->isChecked() );
config->writeEntry( "normalanim", this->chNormalAnim->isChecked() ? *_anims[ 0 ] : "" );
config->writeEntry( "hasnewanim", this->chNewAnim->isChecked() );
@@ -247,12 +247,12 @@ void KornBoxCfgImpl::slotEditBox()
_base->setMainWidget( widget );
- connect( _base, SIGNAL( finished() ), this, SLOT( slotDialogDestroyed() ) );
+ connect( _base, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotDialogDestroyed() ) );
- _group = new KConfigGroup( _config, QString( "korn-%1-%2" ).
+ _group = new KConfigGroup( _config, TQString( "korn-%1-%2" ).
arg( _index ).arg(elbAccounts->listBox()->currentItem() ) );
- QMap< QString, QString > *map = new QMap< QString, QString >( _config->entryMap( QString( "korn-%1-%2" ).
+ TQMap< TQString, TQString > *map = new TQMap< TQString, TQString >( _config->entryMap( TQString( "korn-%1-%2" ).
arg( _index ).arg(elbAccounts->listBox()->currentItem() ) ) );
widget->readConfig( _group, map, _index, elbAccounts->listBox()->currentItem() );
delete map;
@@ -260,7 +260,7 @@ void KornBoxCfgImpl::slotEditBox()
_base->show();
}
-void KornBoxCfgImpl::slotActivated( const QString& )
+void KornBoxCfgImpl::slotActivated( const TQString& )
{
slotEditBox();
}
@@ -270,17 +270,17 @@ void KornBoxCfgImpl::slotActivated( const int )
slotEditBox();
}
-void KornBoxCfgImpl::slotSetDefaults( const QString& name, const int, KConfig* config )
+void KornBoxCfgImpl::slotSetDefaults( const TQString& name, const int, KConfig* config )
{
config->writeEntry( "name", name );
config->writeEntry( "protocol", "mbox" );
- config->writeEntry( "host", QString::null );
- config->writeEntry( "port", QString::null );
- config->writeEntry( "username", QString::null );
+ config->writeEntry( "host", 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", "" );