summaryrefslogtreecommitdiffstats
path: root/kppp/pppdargs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/pppdargs.cpp')
-rw-r--r--kppp/pppdargs.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kppp/pppdargs.cpp b/kppp/pppdargs.cpp
index ca235c6e..f03103bb 100644
--- a/kppp/pppdargs.cpp
+++ b/kppp/pppdargs.cpp
@@ -25,65 +25,65 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kbuttonbox.h>
#include <kwin.h>
#include <kapplication.h>
#include "pppdargs.h"
#include "pppdata.h"
#include <klocale.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
#include <kstdguiitem.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
-PPPdArguments::PPPdArguments(QWidget *parent, const char *name)
- : QDialog(parent, name, TRUE)
+PPPdArguments::PPPdArguments(TQWidget *parent, const char *name)
+ : TQDialog(parent, name, TRUE)
{
setCaption(i18n("Customize pppd Arguments"));
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
- QVBoxLayout *l = new QVBoxLayout(this, 10, 10);
- QHBoxLayout *tl = new QHBoxLayout(10);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 10, 10);
+ TQHBoxLayout *tl = new TQHBoxLayout(10);
l->addLayout(tl);
- QVBoxLayout *l1 = new QVBoxLayout();
- QVBoxLayout *l2 = new QVBoxLayout();
+ TQVBoxLayout *l1 = new TQVBoxLayout();
+ TQVBoxLayout *l2 = new TQVBoxLayout();
tl->addLayout(l1, 1);
tl->addLayout(l2, 0);
- QHBoxLayout *l11 = new QHBoxLayout(10);
+ TQHBoxLayout *l11 = new TQHBoxLayout(10);
l1->addLayout(l11);
- argument_label = new QLabel(i18n("Arg&ument:"), this);
+ argument_label = new TQLabel(i18n("Arg&ument:"), this);
l11->addWidget(argument_label);
- argument = new QLineEdit(this);
+ argument = new TQLineEdit(this);
argument_label->setBuddy(argument);
- connect(argument, SIGNAL(returnPressed()),
- SLOT(addbutton()));
+ connect(argument, TQT_SIGNAL(returnPressed()),
+ TQT_SLOT(addbutton()));
l11->addWidget(argument);
- connect(argument, SIGNAL(textChanged(const QString &)),
- this, SLOT(textChanged(const QString &)));
+ connect(argument, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(textChanged(const TQString &)));
- arguments = new QListBox(this);
+ arguments = new TQListBox(this);
arguments->setMinimumSize(1, fontMetrics().lineSpacing()*10);
- connect(arguments, SIGNAL(highlighted(int)),
- this, SLOT(itemSelected(int)));
+ connect(arguments, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(itemSelected(int)));
l1->addWidget(arguments, 1);
- add = new QPushButton(i18n("&Add"), this);
- connect(add, SIGNAL(clicked()), SLOT(addbutton()));
+ add = new TQPushButton(i18n("&Add"), this);
+ connect(add, TQT_SIGNAL(clicked()), TQT_SLOT(addbutton()));
l2->addWidget(add);
l2->addStretch(1);
- remove = new QPushButton(i18n("&Remove"), this);
- connect(remove, SIGNAL(clicked()), SLOT(removebutton()));
+ remove = new TQPushButton(i18n("&Remove"), this);
+ connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removebutton()));
l2->addWidget(remove);
defaults = new KPushButton(KStdGuiItem::defaults(), this);
- connect(defaults, SIGNAL(clicked()), SLOT(defaultsbutton()));
+ connect(defaults, TQT_SIGNAL(clicked()), TQT_SLOT(defaultsbutton()));
l2->addWidget(defaults);
l->addSpacing(5);
@@ -91,10 +91,10 @@ PPPdArguments::PPPdArguments(QWidget *parent, const char *name)
KButtonBox *bbox = new KButtonBox(this);
bbox->addStretch(1);
closebtn = bbox->addButton(KStdGuiItem::ok());
- connect(closebtn, SIGNAL(clicked()), SLOT(closebutton()));
- QPushButton *cancel = bbox->addButton(KStdGuiItem::cancel());
- connect(cancel, SIGNAL(clicked()),
- this, SLOT(reject()));
+ connect(closebtn, TQT_SIGNAL(clicked()), TQT_SLOT(closebutton()));
+ TQPushButton *cancel = bbox->addButton(KStdGuiItem::cancel());
+ connect(cancel, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(reject()));
bbox->layout();
l->addWidget(bbox);
@@ -126,7 +126,7 @@ void PPPdArguments::removebutton() {
void PPPdArguments::defaultsbutton() {
// all of this is a hack
// save current list
- QStringList arglist(gpppdata.pppdArgument());
+ TQStringList arglist(gpppdata.pppdArgument());
// get defaults
gpppdata.setpppdArgumentDefaults();
@@ -138,7 +138,7 @@ void PPPdArguments::defaultsbutton() {
void PPPdArguments::closebutton() {
- QStringList arglist;
+ TQStringList arglist;
for(uint i=0; i < arguments->count(); i++)
arglist.append(arguments->text(i));
gpppdata.setpppdArgument(arglist);
@@ -151,15 +151,15 @@ void PPPdArguments::init() {
while(arguments->count())
arguments->removeItem(0);
- QStringList &arglist = gpppdata.pppdArgument();
- for ( QStringList::Iterator it = arglist.begin();
+ TQStringList &arglist = gpppdata.pppdArgument();
+ for ( TQStringList::Iterator it = arglist.begin();
it != arglist.end();
++it )
arguments->insertItem(*it);
}
-void PPPdArguments::textChanged(const QString &s) {
+void PPPdArguments::textChanged(const TQString &s) {
add->setEnabled(s.length() > 0);
}