From b09bffed6b43262948018dfb0f11890850ddf7c1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 20:34:22 +0000 Subject: 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 --- kpackage/gentooInterface.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kpackage/gentooInterface.cpp') diff --git a/kpackage/gentooInterface.cpp b/kpackage/gentooInterface.cpp index 448b74c..22eaefc 100644 --- a/kpackage/gentooInterface.cpp +++ b/kpackage/gentooInterface.cpp @@ -39,7 +39,7 @@ Should we care about the world-file? - Read masked packages from /usr/portage/profiles/package.mask + Read tqmasked packages from /usr/portage/profiles/package.tqmask Use flags and CFLAGS? @@ -69,7 +69,7 @@ Gentoo::Gentoo() archesPossible << "~x86" << "x86"; portageDir="/usr/portage/"; - TQFile f(portageDir+"profiles/package.mask"); + TQFile f(portageDir+"profiles/package.tqmask"); if (f.open(IO_ReadOnly)) { TQTextStream stream( &f ); @@ -124,7 +124,7 @@ void Gentoo::listInstalledPackages(TQPtrList *pki) TQString sline = i18n("Looking for Gentoo packages: "); - kpackage->setStatus(sline); + kpackage->settqStatus(sline); kpackage->setPercent(0); TQFile f(portageDir+"profiles/categories"); @@ -181,14 +181,14 @@ void Gentoo::listInstalledPackages(TQPtrList *pki) continue; } - for (TQStringList::Iterator maskIt = packageMask.begin(); maskIt != packageMask.end(); ++maskIt) + for (TQStringList::Iterator tqmaskIt = packageMask.begin(); tqmaskIt != packageMask.end(); ++tqmaskIt) { // FIXME Should all be handled, just not implemented yet - if ((*maskIt).startsWith("<") || (*maskIt).startsWith("=") || (*maskIt).startsWith("~") || (*maskIt).startsWith(">")) + if ((*tqmaskIt).startsWith("<") || (*tqmaskIt).startsWith("=") || (*tqmaskIt).startsWith("~") || (*tqmaskIt).startsWith(">")) continue; - if (*category+"/"+name == *maskIt) + if (*category+"/"+name == *tqmaskIt) { - kdDebug() << "Package: " << name << "-" << version << " is masked" << endl; + kdDebug() << "Package: " << name << "-" << version << " is tqmasked" << endl; isMasked = true; break; } -- cgit v1.2.1