summaryrefslogtreecommitdiffstats
path: root/kpf/src/DirectoryLister.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/DirectoryLister.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/DirectoryLister.cpp')
-rw-r--r--kpf/src/DirectoryLister.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpf/src/DirectoryLister.cpp b/kpf/src/DirectoryLister.cpp
index b642d912..18aa7a98 100644
--- a/kpf/src/DirectoryLister.cpp
+++ b/kpf/src/DirectoryLister.cpp
@@ -63,7 +63,7 @@ namespace KPF
TQByteArray buildHTML(const TQString & title, const TQString & body)
{
- TQPalette pal = qApp->palette();
+ TQPalette pal = tqApp->palette();
TQByteArray temp_string;
TQTextStream html(temp_string, IO_WriteOnly);
@@ -226,7 +226,7 @@ namespace KPF
delete d;
}
- QByteArray
+ TQByteArray
DirectoryLister::html(const TQString & root, const TQString & _path)
{
kpfDebug << "root: " << root << " path: " << _path << endl;
@@ -248,11 +248,11 @@ namespace KPF
return buildHTML
(
i18n("Error"),
- i18n("Directory does not exist: %1 %2").arg(root).arg(path)
+ i18n("Directory does not exist: %1 %2").tqarg(root).tqarg(path)
);
}
- const QFileInfoList * infoList =
+ const TQFileInfoList * infoList =
d.entryInfoList(TQDir::DefaultFilter, TQDir::Name | TQDir::DirsFirst);
if (0 == infoList)
@@ -260,7 +260,7 @@ namespace KPF
return buildHTML
(
i18n("Error"),
- i18n("Directory unreadable: %1 %2").arg(root).arg(path)
+ i18n("Directory unreadable: %1 %2").tqarg(root).tqarg(path)
);
}
@@ -275,7 +275,7 @@ namespace KPF
html += "<th align=\"left\" class=\"listheading\">Size</th>\n";
html += "</tr>\n";
- for (QFileInfoListIterator it(*infoList); it.current(); ++it)
+ for (TQFileInfoListIterator it(*infoList); it.current(); ++it)
{
static int counter = 0;
@@ -335,7 +335,7 @@ namespace KPF
return buildHTML
(
- i18n("Directory listing for %1").arg(TQStyleSheet::escape(path)),
+ i18n("Directory listing for %1").tqarg(TQStyleSheet::escape(path)),
html
);
}