summaryrefslogtreecommitdiffstats
path: root/kpackage/packageProperties.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kpackage/packageProperties.cpp
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/packageProperties.cpp')
-rw-r--r--kpackage/packageProperties.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kpackage/packageProperties.cpp b/kpackage/packageProperties.cpp
index 2e1aca7..c613a23 100644
--- a/kpackage/packageProperties.cpp
+++ b/kpackage/packageProperties.cpp
@@ -37,8 +37,8 @@
#include "managementWidget.h"
packagePropertiesWidget::packagePropertiesWidget
- (TQWidget *parent)
- : KTextBrowser(parent)
+ (TQWidget *tqparent)
+ : KTextBrowser(tqparent)
{
TQDict<TQString> trl(53);
TQStringList pList();
@@ -46,7 +46,7 @@ packagePropertiesWidget::packagePropertiesWidget
// hide();
package=NULL;
- TQColorGroup cg = colorGroup();
+ TQColorGroup cg = tqcolorGroup();
setBackgroundColor(cg.base());
initTranslate();
}
@@ -126,7 +126,7 @@ void packagePropertiesWidget::changePackage(packageInfo *p)
// append other properties to end
TQMap<TQString, TQString>::Iterator it;
for ( it = p->info.begin(); it != p->info.end(); ++it ) {
- if (!trl.find(it.key())) {
+ if (!trl.tqfind(it.key())) {
if (!it.data().isEmpty())
cList.append(it.key());
}
@@ -154,11 +154,11 @@ void packagePropertiesWidget::changePackage(packageInfo *p)
stmp += "</td><td>";
TQString f = p->getProperty(*s);
if (*s == "maintainer" || *s == "packager") {
- f.replace(TQRegExp("<"),"&lt;");
- f.replace(TQRegExp(">"),"&gt;");
+ f.tqreplace(TQRegExp("<"),"&lt;");
+ f.tqreplace(TQRegExp(">"),"&gt;");
}
if (*s == "filename") {
- int p = f.findRev("/");
+ int p = f.tqfindRev("/");
if (p >= 0) {
f.insert(p+1,"\n");
};
@@ -211,7 +211,7 @@ void packagePropertiesWidget::dor(const TQString &f) {
}
void packagePropertiesWidget::delement(const TQString &f) {
- int n = f.find("(");
+ int n = f.tqfind("(");
if (n < 0) {
n = f.length();
}
@@ -222,9 +222,9 @@ void packagePropertiesWidget::delement(const TQString &f) {
TQString us = uf + package->interface->typeID;
bool inst = false, uninst = false;
- if (kpackage->management->dirInstPackages->find(us)) {
+ if (kpackage->management->dirInstPackages->tqfind(us)) {
inst = true;
- } else if (kpackage->management->dirUninstPackages->find(us)) {
+ } else if (kpackage->management->dirUninstPackages->tqfind(us)) {
uninst = true;
}
@@ -242,7 +242,7 @@ void packagePropertiesWidget::delement(const TQString &f) {
if (uninst)
stmp += "</i>";
if (n < (signed)f.length())
- stmp += f.mid(n).replace(TQRegExp("<"),"&lt;");
+ stmp += f.mid(n).tqreplace(TQRegExp("<"),"&lt;");
}
void packagePropertiesWidget::setSource(const TQString &name) {
@@ -262,12 +262,12 @@ void packagePropertiesWidget::setSource(const TQString &name) {
}
TQString ind = s + package->interface->typeID;
- packageInfo *p = kpackage->management->dirInstPackages->find(ind);
+ packageInfo *p = kpackage->management->dirInstPackages->tqfind(ind);
if (p) {
kpackage->management->treeList->changePack(p->getItem(), package->getItem() != 0);
} else {
kdDebug() << "nfound=" << ind << endl;
- p = kpackage->management->dirUninstPackages->find(ind);
+ p = kpackage->management->dirUninstPackages->tqfind(ind);
if (p) {
kpackage->management->treeList->changePack(p->getItem(), package->getItem() != 0);
} else {