From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: Finished remaining porting to new TQt API git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/cups/kptagspage.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kdeprint/cups/kptagspage.cpp') diff --git a/kdeprint/cups/kptagspage.cpp b/kdeprint/cups/kptagspage.cpp index b03f42e75..d9f5a0686 100644 --- a/kdeprint/cups/kptagspage.cpp +++ b/kdeprint/cups/kptagspage.cpp @@ -84,13 +84,13 @@ KPTagsPage::KPTagsPage(bool ro, TQWidget *parent, const char *name) m_tags->setReadOnly(ro); TQWhatsThis::add(m_tags, whatsThisAdditionalTagsTable); - QVBoxLayout *l0 = new TQVBoxLayout(this, 0, 5); + TQVBoxLayout *l0 = new TQVBoxLayout(this, 0, 5); l0->addWidget(m_tags); if (ro) { - QLabel *lab = new TQLabel(i18n("Read-Only"), this); - QFont f = lab->font(); + TQLabel *lab = new TQLabel(i18n("Read-Only"), this); + TQFont f = lab->font(); f.setBold(true); lab->setFont(f); lab->tqsetAlignment(AlignVCenter|AlignRight); @@ -104,10 +104,10 @@ KPTagsPage::~KPTagsPage() bool KPTagsPage::isValid(TQString& msg) { - QRegExp re("\\s"); + TQRegExp re("\\s"); for (int r=0; rnumCols(); r++) { - QString tag(m_tags->text(r, 0)); + TQString tag(m_tags->text(r, 0)); if (tag.isEmpty()) continue; else if (tag.tqfind(re) != -1) @@ -122,13 +122,13 @@ bool KPTagsPage::isValid(TQString& msg) void KPTagsPage::setOptions(const TQMap& opts) { int r(0); - QRegExp re("^\"|\"$"); + TQRegExp re("^\"|\"$"); for (TQMap::ConstIterator it=opts.begin(); it!=opts.end() && rnumRows(); ++it) { if (it.key().startsWith("KDEPrint-")) { m_tags->setText(r, 0, it.key().mid(9)); - QString data = it.data(); + TQString data = it.data(); m_tags->setText(r, 1, data.replace(re, "")); r++; } @@ -144,7 +144,7 @@ void KPTagsPage::getOptions(TQMap& opts, bool) { for (int r=0; rnumRows(); r++) { - QString tag(m_tags->text(r, 0)), val(m_tags->text(r, 1)); + TQString tag(m_tags->text(r, 0)), val(m_tags->text(r, 1)); if (!tag.isEmpty()) { tag.prepend("KDEPrint-"); -- cgit v1.2.1