summaryrefslogtreecommitdiffstats
path: root/kpackage/packageProperties.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/packageProperties.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/packageProperties.cpp')
-rw-r--r--kpackage/packageProperties.cpp58
1 files changed, 29 insertions, 29 deletions
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<QString> trl(53);
- QStringList pList();
- QStringList cList();
+ TQDict<TQString> 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<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::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 += "</h1><hr/>";
stmp += "<table style='width: 100%; border: none; border-spacing: 4px;>";
- for ( QStringList::Iterator s = cList.begin();
+ for ( TQStringList::Iterator s = cList.begin();
s != cList.end();
++s) {
- QString *pr = trl[*s];
- QString propName;
+ TQString *pr = trl[*s];
+ TQString propName;
if(pr) {
propName = *pr;
} else {
@@ -152,10 +152,10 @@ void packagePropertiesWidget::changePackage(packageInfo *p)
stmp += "<td style='vertical-align: top; font-weight: bold'>";
stmp += propName;
stmp += "</td><td>";
- QString f = p->getProperty(*s);
+ TQString f = p->getProperty(*s);
if (*s == "maintainer" || *s == "packager") {
- f.replace(QRegExp("<"),"&lt;");
- f.replace(QRegExp(">"),"&gt;");
+ f.replace(TQRegExp("<"),"&lt;");
+ f.replace(TQRegExp(">"),"&gt;");
}
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 += "</i>";
if (n < (signed)f.length())
- stmp += f.mid(n).replace(QRegExp("<"),"&lt;");
+ stmp += f.mid(n).replace(TQRegExp("<"),"&lt;");
}
-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);