summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/kmpropquota.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/kmpropquota.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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/kmpropquota.cpp')
-rw-r--r--kdeprint/cups/kmpropquota.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kdeprint/cups/kmpropquota.cpp b/kdeprint/cups/kmpropquota.cpp
index ffce459e0..12e360746 100644
--- a/kdeprint/cups/kmpropquota.cpp
+++ b/kdeprint/cups/kmpropquota.cpp
@@ -21,30 +21,30 @@
#include "kmprinter.h"
#include "kmwizard.h"
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
// some forward declarations (see kmwquota.cpp)
const char* unitKeyword(int);
int findUnit(int&);
-KMPropQuota::KMPropQuota(QWidget *parent, const char *name)
+KMPropQuota::KMPropQuota(TQWidget *parent, const char *name)
: KMPropWidget(parent,name)
{
- m_period = new QLabel(this);
- m_sizelimit = new QLabel(this);
- m_pagelimit = new QLabel(this);
+ m_period = new TQLabel(this);
+ m_sizelimit = new TQLabel(this);
+ m_pagelimit = new TQLabel(this);
- QLabel *l1 = new QLabel(i18n("&Period:"), this);
- QLabel *l2 = new QLabel(i18n("&Size limit (KB):"), this);
- QLabel *l3 = new QLabel(i18n("&Page limit:"), this);
+ QLabel *l1 = new TQLabel(i18n("&Period:"), this);
+ QLabel *l2 = new TQLabel(i18n("&Size limit (KB):"), this);
+ QLabel *l3 = new TQLabel(i18n("&Page limit:"), this);
l1->setBuddy(m_period);
l2->setBuddy(m_sizelimit);
l3->setBuddy(m_pagelimit);
- QGridLayout *main_ = new QGridLayout(this, 4, 2, 10, 10);
+ QGridLayout *main_ = new TQGridLayout(this, 4, 2, 10, 10);
main_->setColStretch(1,1);
main_->setRowStretch(3,1);
main_->addWidget(l1,0,0);
@@ -75,9 +75,9 @@ void KMPropQuota::setPrinter(KMPrinter *p)
qu = -1;
if (qu > 0)
un = findUnit(qu);
- m_period->setText(qu == -1 ? i18n("No quota") : QString::number(qu).append(" ").append(i18n(unitKeyword(un))));
- m_sizelimit->setText(si ? QString::number(si) : i18n("None"));
- m_pagelimit->setText(pa ? QString::number(pa) : i18n("None"));
+ m_period->setText(qu == -1 ? i18n("No quota") : TQString::number(qu).append(" ").append(i18n(unitKeyword(un))));
+ m_sizelimit->setText(si ? TQString::number(si) : i18n("None"));
+ m_pagelimit->setText(pa ? TQString::number(pa) : i18n("None"));
emit enable(true);
emit enableChange(p->isLocal());
}