summaryrefslogtreecommitdiffstats
path: root/kpackage/packageDisplay.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/packageDisplay.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/packageDisplay.cpp')
-rw-r--r--kpackage/packageDisplay.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpackage/packageDisplay.cpp b/kpackage/packageDisplay.cpp
index 6eabc9d..707959f 100644
--- a/kpackage/packageDisplay.cpp
+++ b/kpackage/packageDisplay.cpp
@@ -31,7 +31,7 @@
// Standard headers
#include <stdio.h>
-// Qt headers
+// TQt headers
#include <tqapplication.h>
#include <tqfileinfo.h>
@@ -55,8 +55,8 @@
extern Opts *opts;
// constructor
-packageDisplayWidget::packageDisplayWidget(TQWidget *parent)
- : TQTabWidget(parent)
+packageDisplayWidget::packageDisplayWidget(TQWidget *tqparent)
+ : TQTabWidget(tqparent)
{
// Initially we're not dealing with any package
package=NULL;
@@ -186,7 +186,7 @@ void packageDisplayWidget::changePackage(packageInfo *p)
if (package && package != p) {
- if (!package->getItem() && !kpackage->management->allPackages->find(package)) {
+ if (!package->getItem() && !kpackage->management->allPackages->tqfind(package)) {
delete package;
package = 0;
}
@@ -203,7 +203,7 @@ void packageDisplayWidget::changePackage(packageInfo *p)
if (np) {
TQMap<TQString, TQString>::Iterator it; // update info entries in p
for ( it = np->info.begin(); it != np->info.end(); ++it ) {
- package->info.replace(it.key(),it.data());
+ package->info.tqreplace(it.key(),it.data());
}
package->interface = np->interface;
delete np;
@@ -249,7 +249,7 @@ void packageDisplayWidget::updateChangeLog()
lines = package->interface->getChangeLog(package);
- changeLog->setTextFormat(Qt::LogText);
+ changeLog->setTextFormat(TQt::LogText);
changeLog->hide();
if (lines.count() > 1) {
changeLog->setText("");
@@ -280,7 +280,7 @@ void packageDisplayWidget::updateFileList()
TQStringList errorfiles;
// set the status
- kpackage->setStatus(i18n("Updating File List"));
+ kpackage->settqStatus(i18n("Updating File List"));
// clear the file list
fileList->clear();
@@ -306,7 +306,7 @@ void packageDisplayWidget::updateFileList()
errorfiles = package->interface->verify(package, files);
}
- kpackage->setStatus(i18n("Updating File List"));
+ kpackage->settqStatus(i18n("Updating File List"));
uint c=0, p=0;
uint step = (files.count() / 100) + 1;
@@ -363,7 +363,7 @@ void packageDisplayWidget::updateFileList()
kpackage->setPercent(100);
}
- kpFileList::kpFileList(TQWidget* parent, packageDisplayWidget* parent2) : KListView(parent)
+ kpFileList::kpFileList(TQWidget* tqparent, packageDisplayWidget* tqparent2) : KListView(tqparent)
{
hide();
addColumn("name");
@@ -372,9 +372,9 @@ void packageDisplayWidget::updateFileList()
this, TQT_SLOT( openContext(KListView *, TQListViewItem *, const TQPoint &)) );
FileListMenu = new KPopupMenu();
- openwith = FileListMenu->insertItem(i18n("&Open With..."),parent2,TQT_SLOT(__openBindingWith()));
+ openwith = FileListMenu->insertItem(i18n("&Open With..."),tqparent2,TQT_SLOT(__openBindingWith()));
- pkDisplay = parent2;
+ pkDisplay = tqparent2;
}