summaryrefslogtreecommitdiffstats
path: root/kdeprint/rlpr/kmproxywidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/rlpr/kmproxywidget.cpp')
-rw-r--r--kdeprint/rlpr/kmproxywidget.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdeprint/rlpr/kmproxywidget.cpp b/kdeprint/rlpr/kmproxywidget.cpp
index 5e4256ecf..c6dd59189 100644
--- a/kdeprint/rlpr/kmproxywidget.cpp
+++ b/kdeprint/rlpr/kmproxywidget.cpp
@@ -19,34 +19,34 @@
#include "kmproxywidget.h"
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qvalidator.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqvalidator.h>
#include <klocale.h>
#include <kconfig.h>
#include <kcursor.h>
-KMProxyWidget::KMProxyWidget(QWidget *parent, const char *name)
-: QGroupBox(0, Qt::Vertical, i18n("Proxy Settings"), parent, name)
+KMProxyWidget::KMProxyWidget(TQWidget *parent, const char *name)
+: TQGroupBox(0, Qt::Vertical, i18n("Proxy Settings"), parent, name)
{
- QLabel *m_hostlabel = new QLabel(i18n("&Host:"), this);
- QLabel *m_portlabel = new QLabel(i18n("&Port:"), this);
- m_useproxy = new QCheckBox(i18n("&Use proxy server"), this);
+ QLabel *m_hostlabel = new TQLabel(i18n("&Host:"), this);
+ QLabel *m_portlabel = new TQLabel(i18n("&Port:"), this);
+ m_useproxy = new TQCheckBox(i18n("&Use proxy server"), this);
m_useproxy->setCursor(KCursor::handCursor());
- m_proxyhost = new QLineEdit(this);
- m_proxyport = new QLineEdit(this);
- m_proxyport->setValidator(new QIntValidator(m_proxyport));
+ m_proxyhost = new TQLineEdit(this);
+ m_proxyport = new TQLineEdit(this);
+ m_proxyport->setValidator(new TQIntValidator(m_proxyport));
m_hostlabel->setBuddy(m_proxyhost);
m_portlabel->setBuddy(m_proxyport);
- connect(m_useproxy,SIGNAL(toggled(bool)),m_proxyhost,SLOT(setEnabled(bool)));
- connect(m_useproxy,SIGNAL(toggled(bool)),m_proxyport,SLOT(setEnabled(bool)));
+ connect(m_useproxy,TQT_SIGNAL(toggled(bool)),m_proxyhost,TQT_SLOT(setEnabled(bool)));
+ connect(m_useproxy,TQT_SIGNAL(toggled(bool)),m_proxyport,TQT_SLOT(setEnabled(bool)));
m_proxyhost->setEnabled(false);
m_proxyport->setEnabled(false);
- QGridLayout *lay0 = new QGridLayout(layout(), 3, 2, 10);
+ QGridLayout *lay0 = new TQGridLayout(layout(), 3, 2, 10);
lay0->setColStretch(1,1);
lay0->addMultiCellWidget(m_useproxy,0,0,0,1);
lay0->addWidget(m_hostlabel,1,0);
@@ -58,14 +58,14 @@ KMProxyWidget::KMProxyWidget(QWidget *parent, const char *name)
void KMProxyWidget::loadConfig(KConfig *conf)
{
conf->setGroup("RLPR");
- m_proxyhost->setText(conf->readEntry("ProxyHost",QString::null));
- m_proxyport->setText(conf->readEntry("ProxyPort",QString::null));
+ m_proxyhost->setText(conf->readEntry("ProxyHost",TQString::null));
+ m_proxyport->setText(conf->readEntry("ProxyPort",TQString::null));
m_useproxy->setChecked(!m_proxyhost->text().isEmpty());
}
void KMProxyWidget::saveConfig(KConfig *conf)
{
conf->setGroup("RLPR");
- conf->writeEntry("ProxyHost",(m_useproxy->isChecked() ? m_proxyhost->text() : QString::null));
- conf->writeEntry("ProxyPort",(m_useproxy->isChecked() ? m_proxyport->text() : QString::null));
+ conf->writeEntry("ProxyHost",(m_useproxy->isChecked() ? m_proxyhost->text() : TQString::null));
+ conf->writeEntry("ProxyPort",(m_useproxy->isChecked() ? m_proxyport->text() : TQString::null));
}