From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/cups/cupsdconf2/browsedialog.cpp | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kdeprint/cups/cupsdconf2/browsedialog.cpp') diff --git a/kdeprint/cups/cupsdconf2/browsedialog.cpp b/kdeprint/cups/cupsdconf2/browsedialog.cpp index 846ea41a5..0856df11a 100644 --- a/kdeprint/cups/cupsdconf2/browsedialog.cpp +++ b/kdeprint/cups/cupsdconf2/browsedialog.cpp @@ -20,35 +20,35 @@ #include "browsedialog.h" #include "cupsdconf.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -BrowseDialog::BrowseDialog(QWidget *parent, const char *name) - : KDialogBase(parent, name, true, QString::null, Ok|Cancel, Ok, true) +BrowseDialog::BrowseDialog(TQWidget *parent, const char *name) + : KDialogBase(parent, name, true, TQString::null, Ok|Cancel, Ok, true) { - QWidget *dummy = new QWidget(this); + QWidget *dummy = new TQWidget(this); setMainWidget(dummy); - type_ = new QComboBox(dummy); - from_ = new QLineEdit(dummy); - to_ = new QLineEdit(dummy); + type_ = new TQComboBox(dummy); + from_ = new TQLineEdit(dummy); + to_ = new TQLineEdit(dummy); type_->insertItem(i18n("Send")); type_->insertItem(i18n("Allow")); type_->insertItem(i18n("Deny")); type_->insertItem(i18n("Relay")); type_->insertItem(i18n("Poll")); - QLabel *l1 = new QLabel(i18n("Type:"), dummy); - QLabel *l2 = new QLabel(i18n("From:"), dummy); - QLabel *l3 = new QLabel(i18n("To:"), dummy); + QLabel *l1 = new TQLabel(i18n("Type:"), dummy); + QLabel *l2 = new TQLabel(i18n("From:"), dummy); + QLabel *l3 = new TQLabel(i18n("To:"), dummy); - QGridLayout *m1 = new QGridLayout(dummy, 3, 2, 0, 5); + QGridLayout *m1 = new TQGridLayout(dummy, 3, 2, 0, 5); m1->addWidget(l1, 0, 0, Qt::AlignRight); m1->addWidget(l2, 1, 0, Qt::AlignRight); m1->addWidget(l3, 2, 0, Qt::AlignRight); @@ -56,16 +56,16 @@ BrowseDialog::BrowseDialog(QWidget *parent, const char *name) m1->addWidget(from_, 1, 1); m1->addWidget(to_, 2, 1); - connect(type_, SIGNAL(activated(int)), SLOT(slotTypeChanged(int))); + connect(type_, TQT_SIGNAL(activated(int)), TQT_SLOT(slotTypeChanged(int))); slotTypeChanged(type_->currentItem()); setCaption(i18n("Browse Address")); resize(250, 100); } -QString BrowseDialog::addressString() +TQString BrowseDialog::addressString() { - QString s; + TQString s; switch (type_->currentItem()) { case 0: @@ -93,10 +93,10 @@ QString BrowseDialog::addressString() void BrowseDialog::setInfos(CupsdConf *conf) { - QWhatsThis::add(type_, conf->comments_.toolTip("browsetype")); + TQWhatsThis::add(type_, conf->comments_.toolTip("browsetype")); } -QString BrowseDialog::newAddress(QWidget *parent, CupsdConf *conf) +TQString BrowseDialog::newAddress(TQWidget *parent, CupsdConf *conf) { BrowseDialog dlg(parent); dlg.setInfos(conf); @@ -104,14 +104,14 @@ QString BrowseDialog::newAddress(QWidget *parent, CupsdConf *conf) { return dlg.addressString(); } - return QString::null; + return TQString::null; } -QString BrowseDialog::editAddress(const QString& s, QWidget *parent, CupsdConf *conf) +TQString BrowseDialog::editAddress(const TQString& s, TQWidget *parent, CupsdConf *conf) { BrowseDialog dlg(parent); dlg.setInfos(conf); - QStringList l = QStringList::split(QRegExp("\\s"), s, false); + QStringList l = TQStringList::split(TQRegExp("\\s"), s, false); if (l.count() > 1) { if (l[0] == "Send") dlg.type_->setCurrentItem(0); @@ -130,7 +130,7 @@ QString BrowseDialog::editAddress(const QString& s, QWidget *parent, CupsdConf * { return dlg.addressString(); } - return QString::null; + return TQString::null; } void BrowseDialog::slotTypeChanged(int index) -- cgit v1.2.1