summaryrefslogtreecommitdiffstats
path: root/src/gvcore/archive.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/archive.cpp
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/archive.cpp')
-rw-r--r--src/gvcore/archive.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gvcore/archive.cpp b/src/gvcore/archive.cpp
index d3cc20b..a0e78ed 100644
--- a/src/gvcore/archive.cpp
+++ b/src/gvcore/archive.cpp
@@ -1,7 +1,7 @@
// vim: set tabstop=4 shiftwidth=4 noexpandtab
/*
Gwenview - A simple image viewer for KDE
-Copyright 2000-2004 Aurélien Gâteau
+Copyright 2000-2004 Aur�lien G�teau
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -29,7 +29,7 @@ namespace Gwenview {
namespace Archive {
-typedef QMap<QString,QString> MimeTypeProtocols;
+typedef TQMap<TQString,TQString> MimeTypeProtocols;
static const char* KDE_PROTOCOL = "X-KDE-LocalProtocol";
@@ -39,8 +39,8 @@ static const MimeTypeProtocols& mimeTypeProtocols() {
KMimeType::List list = KMimeType::allMimeTypes();
KMimeType::List::Iterator it=list.begin(), end=list.end();
for (; it!=end; ++it) {
- if ( (*it)->propertyNames().findIndex(KDE_PROTOCOL)!= -1 ) {
- QString protocol = (*it)->property(KDE_PROTOCOL).toString();
+ if ( (*it)->propertyNames().tqfindIndex(KDE_PROTOCOL)!= -1 ) {
+ TQString protocol = (*it)->property(KDE_PROTOCOL).toString();
map[(*it)->name()] = protocol;
}
}
@@ -50,14 +50,14 @@ static const MimeTypeProtocols& mimeTypeProtocols() {
bool fileItemIsArchive(const KFileItem* item) {
- return mimeTypeProtocols().contains(item->mimetype());
+ return mimeTypeProtocols().tqcontains(item->mimetype());
}
bool fileItemIsDirOrArchive(const KFileItem* item) {
return item->isDir() || Archive::fileItemIsArchive(item);
}
-bool protocolIsArchive(const QString& protocol) {
+bool protocolIsArchive(const TQString& protocol) {
const MimeTypeProtocols& map=mimeTypeProtocols();
MimeTypeProtocols::ConstIterator it;
for (it=map.begin();it!=map.end();++it) {
@@ -66,19 +66,19 @@ bool protocolIsArchive(const QString& protocol) {
return false;
}
-QStringList mimeTypes() {
+TQStringList mimeTypes() {
const MimeTypeProtocols& map=mimeTypeProtocols();
MimeTypeProtocols::ConstIterator it;
- QStringList strlist;
+ TQStringList strlist;
for (it=map.begin();it!=map.end();++it) {
strlist+=it.key();
}
return strlist;
- //return mimeTypeProtocols().keys(); // keys() does not exist in Qt 3.0
+ //return mimeTypeProtocols().keys(); // keys() does not exist in TQt 3.0
}
-QString protocolForMimeType(const QString& mimeType) {
+TQString protocolForMimeType(const TQString& mimeType) {
return mimeTypeProtocols()[mimeType];
}