diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/cupsdconf2/addressdialog.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/cupsdconf2/addressdialog.cpp')
-rw-r--r-- | kdeprint/cups/cupsdconf2/addressdialog.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kdeprint/cups/cupsdconf2/addressdialog.cpp b/kdeprint/cups/cupsdconf2/addressdialog.cpp index b7472c5a4..1811abf68 100644 --- a/kdeprint/cups/cupsdconf2/addressdialog.cpp +++ b/kdeprint/cups/cupsdconf2/addressdialog.cpp @@ -19,27 +19,27 @@ #include "addressdialog.h" -#include <qcombobox.h> -#include <qlineedit.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqcombobox.h> +#include <tqlineedit.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klocale.h> -AddressDialog::AddressDialog(QWidget *parent, const char *name) +AddressDialog::AddressDialog(TQWidget *parent, const char *name) : KDialogBase(Swallow, i18n("ACL Address"), Ok|Cancel, Ok, parent, name, true, true) { - QWidget *w = new QWidget(this); - type_ = new QComboBox(w); - address_ = new QLineEdit(w); + TQWidget *w = new TQWidget(this); + type_ = new TQComboBox(w); + address_ = new TQLineEdit(w); type_->insertItem(i18n("Allow")); type_->insertItem(i18n("Deny")); - QLabel *l1 = new QLabel(i18n("Type:"), w); - QLabel *l2 = new QLabel(i18n("Address:"), w); + QLabel *l1 = new TQLabel(i18n("Type:"), w); + QLabel *l2 = new TQLabel(i18n("Address:"), w); - QGridLayout *m1 = new QGridLayout(w, 2, 2, 0, 5); + QGridLayout *m1 = new TQGridLayout(w, 2, 2, 0, 5); m1->setColStretch(1, 1); m1->addWidget(l1, 0, 0, Qt::AlignRight); m1->addWidget(l2, 1, 0, Qt::AlignRight); @@ -50,9 +50,9 @@ AddressDialog::AddressDialog(QWidget *parent, const char *name) resize(300, 100); } -QString AddressDialog::addressString() +TQString AddressDialog::addressString() { - QString s; + TQString s; if (type_->currentItem() == 0) s.append("Allow "); else @@ -64,16 +64,16 @@ QString AddressDialog::addressString() return s; } -QString AddressDialog::newAddress(QWidget *parent) +TQString AddressDialog::newAddress(TQWidget *parent) { AddressDialog dlg(parent); if (dlg.exec()) return dlg.addressString(); else - return QString::null; + return TQString::null; } -QString AddressDialog::editAddress(const QString& addr, QWidget *parent) +TQString AddressDialog::editAddress(const TQString& addr, TQWidget *parent) { AddressDialog dlg(parent); int p = addr.find(' '); @@ -85,5 +85,5 @@ QString AddressDialog::editAddress(const QString& addr, QWidget *parent) if (dlg.exec()) return dlg.addressString(); else - return QString::null; + return TQString::null; } |