From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpackage/packageProperties.cpp | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'kpackage/packageProperties.cpp') diff --git a/kpackage/packageProperties.cpp b/kpackage/packageProperties.cpp index b05a00c..2e1aca7 100644 --- a/kpackage/packageProperties.cpp +++ b/kpackage/packageProperties.cpp @@ -37,16 +37,16 @@ #include "managementWidget.h" packagePropertiesWidget::packagePropertiesWidget - (QWidget *parent) + (TQWidget *parent) : KTextBrowser(parent) { - QDict trl(53); - QStringList pList(); - QStringList cList(); + TQDict trl(53); + TQStringList pList(); + TQStringList cList(); // hide(); package=NULL; - QColorGroup cg = colorGroup(); + TQColorGroup cg = colorGroup(); setBackgroundColor(cg.base()); initTranslate(); } @@ -55,9 +55,9 @@ packagePropertiesWidget::~packagePropertiesWidget() { } -void packagePropertiesWidget::iList(const QString &txt, const QString &itxt) +void packagePropertiesWidget::iList(const TQString &txt, const TQString &itxt) { - trl.insert(txt, new QString(itxt)); + trl.insert(txt, new TQString(itxt)); pList.append(txt); } @@ -115,7 +115,7 @@ void packagePropertiesWidget::changePackage(packageInfo *p) cList.clear(); if (p) { // append properties in ordered list to current list - for ( QStringList::Iterator s = pList.begin(); + for ( TQStringList::Iterator s = pList.begin(); s != pList.end(); ++s) { @@ -124,7 +124,7 @@ void packagePropertiesWidget::changePackage(packageInfo *p) } } // append other properties to end - QMap::Iterator it; + TQMap::Iterator it; for ( it = p->info.begin(); it != p->info.end(); ++it ) { if (!trl.find(it.key())) { if (!it.data().isEmpty()) @@ -138,11 +138,11 @@ void packagePropertiesWidget::changePackage(packageInfo *p) stmp += p->getProperty("name"); stmp += "
"; stmp += ""; stmp += propName; stmp += "
"; - QString f = p->getProperty(*s); + TQString f = p->getProperty(*s); if (*s == "maintainer" || *s == "packager") { - f.replace(QRegExp("<"),"<"); - f.replace(QRegExp(">"),">"); + f.replace(TQRegExp("<"),"<"); + f.replace(TQRegExp(">"),">"); } if (*s == "filename") { int p = f.findRev("/"); @@ -186,40 +186,40 @@ void packagePropertiesWidget::changePackage(packageInfo *p) update(); } -void packagePropertiesWidget::depends(const QString &f) { +void packagePropertiesWidget::depends(const TQString &f) { // printf("d=%s\n",f.data()); int i = 0; - QStringList list = QStringList::split(',',f); - for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { + TQStringList list = TQStringList::split(',',f); + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { if (i++ > 0) stmp += ","; dor((*it)); } } -void packagePropertiesWidget::dor(const QString &f) { +void packagePropertiesWidget::dor(const TQString &f) { // printf("o=%s\n",f.data()); int i = 0; - QStringList list = QStringList::split('|',f); - for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { + TQStringList list = TQStringList::split('|',f); + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { if (i++ > 0) stmp += "|"; delement((*it)); } } -void packagePropertiesWidget::delement(const QString &f) { +void packagePropertiesWidget::delement(const TQString &f) { int n = f.find("("); if (n < 0) { n = f.length(); } - QString u = f.left(n); - QString uf = package->interface->provMap(u.stripWhiteSpace()); + TQString u = f.left(n); + TQString uf = package->interface->provMap(u.stripWhiteSpace()); - QString us = uf + package->interface->typeID; + TQString us = uf + package->interface->typeID; bool inst = false, uninst = false; if (kpackage->management->dirInstPackages->find(us)) { @@ -242,11 +242,11 @@ void packagePropertiesWidget::delement(const QString &f) { if (uninst) stmp += ""; if (n < (signed)f.length()) - stmp += f.mid(n).replace(QRegExp("<"),"<"); + stmp += f.mid(n).replace(TQRegExp("<"),"<"); } -void packagePropertiesWidget::setSource(const QString &name) { - QString s = name; +void packagePropertiesWidget::setSource(const TQString &name) { + TQString s = name; if (s.startsWith("http:") || s.startsWith("ftp:")) { @@ -261,7 +261,7 @@ void packagePropertiesWidget::setSource(const QString &name) { s = s.mid(1); } - QString ind = s + package->interface->typeID; + TQString ind = s + package->interface->typeID; packageInfo *p = kpackage->management->dirInstPackages->find(ind); if (p) { kpackage->management->treeList->changePack(p->getItem(), package->getItem() != 0); -- cgit v1.2.1