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/management/kmwclass.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdeprint/management/kmwclass.cpp') diff --git a/kdeprint/management/kmwclass.cpp b/kdeprint/management/kmwclass.cpp index d432af8e1..77544b08f 100644 --- a/kdeprint/management/kmwclass.cpp +++ b/kdeprint/management/kmwclass.cpp @@ -42,19 +42,19 @@ KMWClass::KMWClass(TQWidget *parent, const char *name) m_list2 = new KListBox(this); m_list2->setSelectionMode(TQListBox::Extended); - QToolButton *add = new TQToolButton(this); - QToolButton *remove = new TQToolButton(this); + TQToolButton *add = new TQToolButton(this); + TQToolButton *remove = new TQToolButton(this); add->setIconSet(BarIcon("forward")); remove->setIconSet(BarIcon("back")); connect(add,TQT_SIGNAL(clicked()),TQT_SLOT(slotAdd())); connect(remove,TQT_SIGNAL(clicked()),TQT_SLOT(slotRemove())); - QLabel *l1 = new TQLabel(i18n("Available printers:"), this); - QLabel *l2 = new TQLabel(i18n("Class printers:"), this); + TQLabel *l1 = new TQLabel(i18n("Available printers:"), this); + TQLabel *l2 = new TQLabel(i18n("Class printers:"), this); - QHBoxLayout *lay1 = new TQHBoxLayout(this, 0, 15); - QVBoxLayout *lay2 = new TQVBoxLayout(0, 0, 20); - QVBoxLayout *lay3 = new TQVBoxLayout(0, 0, 0), *lay4 = new TQVBoxLayout(0, 0, 0); + TQHBoxLayout *lay1 = new TQHBoxLayout(this, 0, 15); + TQVBoxLayout *lay2 = new TQVBoxLayout(0, 0, 20); + TQVBoxLayout *lay3 = new TQVBoxLayout(0, 0, 0), *lay4 = new TQVBoxLayout(0, 0, 0); lay1->addLayout(lay3, 1); lay1->addLayout(lay2, 0); lay1->addLayout(lay4, 1); @@ -84,7 +84,7 @@ bool KMWClass::isValid(TQString& msg) void KMWClass::initPrinter(KMPrinter *p) { - QStringList members = p->members(); + TQStringList members = p->members(); KMManager *mgr = KMFactory::self()->manager(); // first load available printers @@ -94,7 +94,7 @@ void KMWClass::initPrinter(KMPrinter *p) { TQPtrListIterator it(*list); for (;it.current();++it) - if (it.current()->instanceName().isEmpty() && !it.current()->isClass(true) && !it.current()->isSpecial() && !members.contains(it.current()->name())) + if (it.current()->instanceName().isEmpty() && !it.current()->isClass(true) && !it.current()->isSpecial() && !members.tqcontains(it.current()->name())) m_list1->insertItem(SmallIcon(it.current()->pixmap()), it.current()->name()); m_list1->sort(); } @@ -111,7 +111,7 @@ void KMWClass::initPrinter(KMPrinter *p) void KMWClass::updatePrinter(KMPrinter *p) { - QStringList members; + TQStringList members; for (uint i=0; icount(); i++) members.append(m_list2->item(i)->text()); p->setMembers(members); -- cgit v1.2.1