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/cupsdjobspage.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/cupsdjobspage.cpp')
-rw-r--r-- | kdeprint/cups/cupsdconf2/cupsdjobspage.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kdeprint/cups/cupsdconf2/cupsdjobspage.cpp b/kdeprint/cups/cupsdconf2/cupsdjobspage.cpp index bfb2832eb..52d9eaf15 100644 --- a/kdeprint/cups/cupsdconf2/cupsdjobspage.cpp +++ b/kdeprint/cups/cupsdconf2/cupsdjobspage.cpp @@ -20,24 +20,24 @@ #include "cupsdjobspage.h" #include "cupsdconf.h" -#include <qlabel.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> #include <klocale.h> #include <knuminput.h> -CupsdJobsPage::CupsdJobsPage(QWidget *parent, const char *name) +CupsdJobsPage::CupsdJobsPage(TQWidget *parent, const char *name) : CupsdPage(parent, name) { setPageLabel(i18n("Jobs")); setHeader(i18n("Print Jobs Settings")); setPixmap("fileprint"); - keepjobhistory_ = new QCheckBox(i18n("Preserve job history"), this); - keepjobfiles_ = new QCheckBox(i18n("Preserve job files"), this); - autopurgejobs_ = new QCheckBox(i18n("Auto purge jobs"), this); + keepjobhistory_ = new TQCheckBox(i18n("Preserve job history"), this); + keepjobfiles_ = new TQCheckBox(i18n("Preserve job files"), this); + autopurgejobs_ = new TQCheckBox(i18n("Auto purge jobs"), this); maxjobs_ = new KIntNumInput(this); maxjobsperprinter_ = new KIntNumInput(this); maxjobsperuser_ = new KIntNumInput(this); @@ -52,11 +52,11 @@ CupsdJobsPage::CupsdJobsPage(QWidget *parent, const char *name) maxjobsperuser_->setSpecialValueText(i18n("Unlimited")); maxjobsperuser_->setSteps(1, 10); - QLabel *l1 = new QLabel(i18n("Max jobs:"), this); - QLabel *l2 = new QLabel(i18n("Max jobs per printer:"), this); - QLabel *l3 = new QLabel(i18n("Max jobs per user:"), this); + TQLabel *l1 = new TQLabel(i18n("Max jobs:"), this); + TQLabel *l2 = new TQLabel(i18n("Max jobs per printer:"), this); + TQLabel *l3 = new TQLabel(i18n("Max jobs per user:"), this); - QGridLayout *m1 = new QGridLayout(this, 7, 2, 10, 7); + QGridLayout *m1 = new TQGridLayout(this, 7, 2, 10, 7); m1->setRowStretch(6, 1); m1->setColStretch(1, 1); m1->addWidget(keepjobhistory_, 0, 1); @@ -69,11 +69,11 @@ CupsdJobsPage::CupsdJobsPage(QWidget *parent, const char *name) m1->addWidget(maxjobsperprinter_, 4, 1); m1->addWidget(maxjobsperuser_, 5, 1); - connect(keepjobhistory_, SIGNAL(toggled(bool)), SLOT(historyChanged(bool))); + connect(keepjobhistory_, TQT_SIGNAL(toggled(bool)), TQT_SLOT(historyChanged(bool))); keepjobhistory_->setChecked(true); } -bool CupsdJobsPage::loadConfig(CupsdConf *conf, QString&) +bool CupsdJobsPage::loadConfig(CupsdConf *conf, TQString&) { conf_ = conf; keepjobhistory_->setChecked(conf_->keepjobhistory_); @@ -89,7 +89,7 @@ bool CupsdJobsPage::loadConfig(CupsdConf *conf, QString&) return true; } -bool CupsdJobsPage::saveConfig(CupsdConf *conf, QString&) +bool CupsdJobsPage::saveConfig(CupsdConf *conf, TQString&) { conf->keepjobhistory_ = keepjobhistory_->isChecked(); if (conf->keepjobhistory_) @@ -106,12 +106,12 @@ bool CupsdJobsPage::saveConfig(CupsdConf *conf, QString&) void CupsdJobsPage::setInfos(CupsdConf *conf) { - QWhatsThis::add(keepjobhistory_, conf->comments_.toolTip("preservejobhistory")); - QWhatsThis::add(keepjobfiles_, conf->comments_.toolTip("preservejobfiles")); - QWhatsThis::add(autopurgejobs_, conf->comments_.toolTip("autopurgejobs")); - QWhatsThis::add(maxjobs_, conf->comments_.toolTip("maxjobs")); - QWhatsThis::add(maxjobsperprinter_, conf->comments_.toolTip("maxjobsperprinter")); - QWhatsThis::add(maxjobsperuser_, conf->comments_.toolTip("maxjobsperuser")); + TQWhatsThis::add(keepjobhistory_, conf->comments_.toolTip("preservejobhistory")); + TQWhatsThis::add(keepjobfiles_, conf->comments_.toolTip("preservejobfiles")); + TQWhatsThis::add(autopurgejobs_, conf->comments_.toolTip("autopurgejobs")); + TQWhatsThis::add(maxjobs_, conf->comments_.toolTip("maxjobs")); + TQWhatsThis::add(maxjobsperprinter_, conf->comments_.toolTip("maxjobsperprinter")); + TQWhatsThis::add(maxjobsperuser_, conf->comments_.toolTip("maxjobsperuser")); } void CupsdJobsPage::historyChanged(bool on) |