summaryrefslogtreecommitdiffstats
path: root/certmanager/kwatchgnupg/kwatchgnupgconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/kwatchgnupg/kwatchgnupgconfig.cpp')
-rw-r--r--certmanager/kwatchgnupg/kwatchgnupgconfig.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/certmanager/kwatchgnupg/kwatchgnupgconfig.cpp b/certmanager/kwatchgnupg/kwatchgnupgconfig.cpp
index b621e92b8..aa8e52f72 100644
--- a/certmanager/kwatchgnupg/kwatchgnupgconfig.cpp
+++ b/certmanager/kwatchgnupg/kwatchgnupgconfig.cpp
@@ -37,18 +37,18 @@
#include <kconfig.h>
#include <kapplication.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qvgroupbox.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqvgroupbox.h>
static const char* log_levels[] = { "none", "basic", "advanced", "expert", "guru" };
-static int log_level_to_int( const QString& loglevel )
+static int log_level_to_int( const TQString& loglevel )
{
if( loglevel == "none" ) {
return 0;
@@ -66,89 +66,89 @@ static int log_level_to_int( const QString& loglevel )
}
}
-KWatchGnuPGConfig::KWatchGnuPGConfig( QWidget* parent, const char* name )
+KWatchGnuPGConfig::KWatchGnuPGConfig( TQWidget* parent, const char* name )
: KDialogBase( Plain, i18n("Configure KWatchGnuPG"),
Ok|Cancel, Ok, parent, name )
{
// tmp vars:
- QWidget * w;
- QGridLayout * glay;
- QGroupBox * group;
+ TQWidget * w;
+ TQGridLayout * glay;
+ TQGroupBox * group;
- QWidget * top = plainPage();
+ TQWidget * top = plainPage();
- QVBoxLayout * vlay = new QVBoxLayout( top, 0, spacingHint() );
+ TQVBoxLayout * vlay = new TQVBoxLayout( top, 0, spacingHint() );
- group = new QVGroupBox( i18n("WatchGnuPG"), top );
+ group = new TQVGroupBox( i18n("WatchGnuPG"), top );
group->layout()->setSpacing( spacingHint() );
- w = new QWidget( group );
+ w = new TQWidget( group );
- glay = new QGridLayout( w, 3, 2, 0, spacingHint() );
+ glay = new TQGridLayout( w, 3, 2, 0, spacingHint() );
glay->setColStretch( 1, 1 );
int row = -1;
++row;
mExeED = new KURLRequester( w );
- glay->addWidget( new QLabel( mExeED, i18n("&Executable:"), w ), row, 0 );
+ glay->addWidget( new TQLabel( mExeED, i18n("&Executable:"), w ), row, 0 );
glay->addWidget( mExeED, row, 1 );
- connect( mExeED, SIGNAL(textChanged(const QString&)), SLOT(slotChanged()) );
+ connect( mExeED, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotChanged()) );
++row;
mSocketED = new KURLRequester( w );
- glay->addWidget( new QLabel( mSocketED, i18n("&Socket:"), w ), row, 0 );
+ glay->addWidget( new TQLabel( mSocketED, i18n("&Socket:"), w ), row, 0 );
glay->addWidget( mSocketED, row, 1 );
- connect( mSocketED, SIGNAL(textChanged(const QString&)), SLOT(slotChanged()) );
+ connect( mSocketED, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotChanged()) );
++row;
- mLogLevelCB = new QComboBox( false, w );
+ mLogLevelCB = new TQComboBox( false, w );
mLogLevelCB->insertItem( i18n("None") );
mLogLevelCB->insertItem( i18n("Basic") );
mLogLevelCB->insertItem( i18n("Advanced") );
mLogLevelCB->insertItem( i18n("Expert") );
mLogLevelCB->insertItem( i18n("Guru") );
- glay->addWidget( new QLabel( mLogLevelCB, i18n("Default &log level:"), w ), row, 0 );
+ glay->addWidget( new TQLabel( mLogLevelCB, i18n("Default &log level:"), w ), row, 0 );
glay->addWidget( mLogLevelCB, row, 1 );
- connect( mLogLevelCB, SIGNAL(activated(int)), SLOT(slotChanged()) );
+ connect( mLogLevelCB, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChanged()) );
vlay->addWidget( group );
/******************* Log Window group *******************/
- group = new QVGroupBox( i18n("Log Window"), top );
+ group = new TQVGroupBox( i18n("Log Window"), top );
group->layout()->setSpacing( spacingHint() );
- w = new QWidget( group );
+ w = new TQWidget( group );
- glay = new QGridLayout( w, 2, 3, 0, spacingHint() );
+ glay = new TQGridLayout( w, 2, 3, 0, spacingHint() );
glay->setColStretch( 1, 1 );
row = -1;
++row;
- mLoglenSB = new QSpinBox( 0, 1000000, 100, w );
+ mLoglenSB = new TQSpinBox( 0, 1000000, 100, w );
mLoglenSB->setSuffix( i18n("history size spinbox suffix"," lines") );
mLoglenSB->setSpecialValueText( i18n("unlimited") );
- glay->addWidget( new QLabel( mLoglenSB, i18n("&History size:"), w ), row, 0 );
+ glay->addWidget( new TQLabel( mLoglenSB, i18n("&History size:"), w ), row, 0 );
glay->addWidget( mLoglenSB, row, 1 );
- QPushButton * button = new QPushButton( i18n("Set &Unlimited"), w );
+ TQPushButton * button = new TQPushButton( i18n("Set &Unlimited"), w );
glay->addWidget( button, row, 2 );
- connect( mLoglenSB, SIGNAL(valueChanged(int)), SLOT(slotChanged()) );
- connect( button, SIGNAL(clicked()), SLOT(slotSetHistorySizeUnlimited()) );
+ connect( mLoglenSB, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotChanged()) );
+ connect( button, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetHistorySizeUnlimited()) );
++row;
- mWordWrapCB = new QCheckBox( i18n("Enable &word wrapping"), w );
- mWordWrapCB->hide(); // QTextEdit doesn't support word wrapping in LogText mode
+ mWordWrapCB = new TQCheckBox( i18n("Enable &word wrapping"), w );
+ mWordWrapCB->hide(); // TQTextEdit doesn't support word wrapping in LogText mode
glay->addMultiCellWidget( mWordWrapCB, row, row, 0, 2 );
- connect( mWordWrapCB, SIGNAL(clicked()), SLOT(slotChanged()) );
+ connect( mWordWrapCB, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()) );
vlay->addWidget( group );
vlay->addStretch( 1 );
- connect( this, SIGNAL(applyClicked()), SLOT(slotSave()) );
- connect( this, SIGNAL(okClicked()), SLOT(slotSave()) );
+ connect( this, TQT_SIGNAL(applyClicked()), TQT_SLOT(slotSave()) );
+ connect( this, TQT_SIGNAL(okClicked()), TQT_SLOT(slotSave()) );
}
void KWatchGnuPGConfig::slotSetHistorySizeUnlimited() {
@@ -160,7 +160,7 @@ void KWatchGnuPGConfig::loadConfig()
KConfig* config = kapp->config();
config->setGroup("WatchGnuPG");
mExeED->setURL( config->readEntry( "Executable", "watchgnupg" ) );
- mSocketED->setURL( config->readEntry( "Socket", QDir::home().canonicalPath()
+ mSocketED->setURL( config->readEntry( "Socket", TQDir::home().canonicalPath()
+ "/.gnupg/log-socket") );
mLogLevelCB->setCurrentItem( log_level_to_int( config->readEntry( "LogLevel", "basic" ) ) );
@@ -168,7 +168,7 @@ void KWatchGnuPGConfig::loadConfig()
mLoglenSB->setValue( config->readNumEntry( "MaxLogLen", 10000 ) );
mWordWrapCB->setChecked( config->readBoolEntry("WordWrap", false ) );
- config->setGroup( QString::null );
+ config->setGroup( TQString::null );
enableButtonOK( false );
enableButtonApply( false );
}
@@ -185,7 +185,7 @@ void KWatchGnuPGConfig::saveConfig()
config->writeEntry( "MaxLogLen", mLoglenSB->value() );
config->writeEntry( "WordWrap", mWordWrapCB->isChecked() );
- config->setGroup( QString::null );
+ config->setGroup( TQString::null );
config->sync();
enableButtonOK( false );
enableButtonApply( false );