summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp')
-rw-r--r--kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp b/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
index a77f21708..0bf290fb9 100644
--- a/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
+++ b/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
@@ -23,16 +23,16 @@
#include "editlist.h"
#include "locationdialog.h"
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kiconloader.h>
#include <kmessagebox.h>
-CupsdSecurityPage::CupsdSecurityPage(QWidget *parent, const char *name)
+CupsdSecurityPage::CupsdSecurityPage(TQWidget *parent, const char *name)
: CupsdPage(parent, name)
{
setPageLabel(i18n("Security"));
@@ -40,19 +40,19 @@ CupsdSecurityPage::CupsdSecurityPage(QWidget *parent, const char *name)
setPixmap("password");
locs_.setAutoDelete(true);
- remoteroot_ = new QLineEdit(this);
- systemgroup_ = new QLineEdit(this);
+ remoteroot_ = new TQLineEdit(this);
+ systemgroup_ = new TQLineEdit(this);
encryptcert_ = new QDirLineEdit(true, this);
encryptkey_ = new QDirLineEdit(true, this);
locations_ = new EditList(this);
- QLabel *l1 = new QLabel(i18n("Remote root user:"), this);
- QLabel *l2 = new QLabel(i18n("System group:"), this);
- QLabel *l3 = new QLabel(i18n("Encryption certificate:"), this);
- QLabel *l4 = new QLabel(i18n("Encryption key:"), this);
- QLabel *l5 = new QLabel(i18n("Locations:"), this);
+ TQLabel *l1 = new TQLabel(i18n("Remote root user:"), this);
+ TQLabel *l2 = new TQLabel(i18n("System group:"), this);
+ TQLabel *l3 = new TQLabel(i18n("Encryption certificate:"), this);
+ TQLabel *l4 = new TQLabel(i18n("Encryption key:"), this);
+ TQLabel *l5 = new TQLabel(i18n("Locations:"), this);
- QGridLayout *m1 = new QGridLayout(this, 6, 2, 10, 7);
+ QGridLayout *m1 = new TQGridLayout(this, 6, 2, 10, 7);
m1->setRowStretch(5, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
@@ -66,13 +66,13 @@ CupsdSecurityPage::CupsdSecurityPage(QWidget *parent, const char *name)
m1->addWidget(encryptkey_, 3, 1);
m1->addWidget(locations_, 4, 1);
- connect(locations_, SIGNAL(add()), SLOT(slotAdd()));
- connect(locations_, SIGNAL(edit(int)), SLOT(slotEdit(int)));
- connect(locations_, SIGNAL(defaultList()), SLOT(slotDefaultList()));
- connect(locations_, SIGNAL(deleted(int)), SLOT(slotDeleted(int)));
+ connect(locations_, TQT_SIGNAL(add()), TQT_SLOT(slotAdd()));
+ connect(locations_, TQT_SIGNAL(edit(int)), TQT_SLOT(slotEdit(int)));
+ connect(locations_, TQT_SIGNAL(defaultList()), TQT_SLOT(slotDefaultList()));
+ connect(locations_, TQT_SIGNAL(deleted(int)), TQT_SLOT(slotDeleted(int)));
}
-bool CupsdSecurityPage::loadConfig(CupsdConf *conf, QString&)
+bool CupsdSecurityPage::loadConfig(CupsdConf *conf, TQString&)
{
conf_ = conf;
remoteroot_->setText(conf_->remoteroot_);
@@ -80,7 +80,7 @@ bool CupsdSecurityPage::loadConfig(CupsdConf *conf, QString&)
encryptcert_->setURL(conf_->encryptcert_);
encryptkey_->setURL(conf_->encryptkey_);
locs_.clear();
- QPtrListIterator<CupsLocation> it(conf_->locations_);
+ TQPtrListIterator<CupsLocation> it(conf_->locations_);
for (;it.current();++it)
{
locs_.append(new CupsLocation(*(it.current())));
@@ -93,14 +93,14 @@ bool CupsdSecurityPage::loadConfig(CupsdConf *conf, QString&)
return true;
}
-bool CupsdSecurityPage::saveConfig(CupsdConf *conf, QString&)
+bool CupsdSecurityPage::saveConfig(CupsdConf *conf, TQString&)
{
conf->remoteroot_ = remoteroot_->text();
conf->systemgroup_ = systemgroup_->text();
conf->encryptcert_ = encryptcert_->url();
conf->encryptkey_ = encryptkey_->url();
conf->locations_.clear();
- QPtrListIterator<CupsLocation> it(locs_);
+ TQPtrListIterator<CupsLocation> it(locs_);
for (;it.current();++it)
conf->locations_.append(new CupsLocation(*(it.current())));
@@ -109,11 +109,11 @@ bool CupsdSecurityPage::saveConfig(CupsdConf *conf, QString&)
void CupsdSecurityPage::setInfos(CupsdConf *conf)
{
- QWhatsThis::add(remoteroot_, conf->comments_.toolTip("remoteroot"));
- QWhatsThis::add(systemgroup_, conf->comments_.toolTip("systemgroup"));
- QWhatsThis::add(encryptcert_, conf->comments_.toolTip("servercertificate"));
- QWhatsThis::add(encryptkey_, conf->comments_.toolTip("serverkey"));
- QWhatsThis::add(locations_, conf->comments_.toolTip("locationsshort"));
+ TQWhatsThis::add(remoteroot_, conf->comments_.toolTip("remoteroot"));
+ TQWhatsThis::add(systemgroup_, conf->comments_.toolTip("systemgroup"));
+ TQWhatsThis::add(encryptcert_, conf->comments_.toolTip("servercertificate"));
+ TQWhatsThis::add(encryptkey_, conf->comments_.toolTip("serverkey"));
+ TQWhatsThis::add(locations_, conf->comments_.toolTip("locationsshort"));
}
void CupsdSecurityPage::slotAdd()
@@ -125,7 +125,7 @@ void CupsdSecurityPage::slotAdd()
for (locs_.first(); locs_.current(); locs_.next())
if (locs_.current()->resource_ == loc->resource_)
{
- if (KMessageBox::warningContinueCancel(this, i18n("This location is already defined. Do you want to replace the existing one?"),QString::null,i18n("Replace")) == KMessageBox::Continue)
+ if (KMessageBox::warningContinueCancel(this, i18n("This location is already defined. Do you want to replace the existing one?"),TQString::null,i18n("Replace")) == KMessageBox::Continue)
{
index = locs_.at();
locs_.remove();