summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp')
-rw-r--r--certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp b/certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp
index 3b6ae35eb..6cb71dbad 100644
--- a/certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp
+++ b/certmanager/lib/backends/qgpgme/qgpgmeprogresstokenmapper.cpp
@@ -38,7 +38,7 @@
#include <klocale.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <assert.h>
#include <map>
@@ -108,13 +108,13 @@ Kleo::QGpgMEProgressTokenMapper::~QGpgMEProgressTokenMapper() {
mSelf = 0;
}
-typedef std::map< QString, std::map<int,Desc> > Map;
+typedef std::map< TQString, std::map<int,Desc> > Map;
static const Map & makeMap() { // return a reference to a static to avoid copying
static Map map;
for ( unsigned int i = 0 ; i < sizeof tokens / sizeof *tokens ; ++i ) {
assert( tokens[i].token );
- const QString token = QString::fromLatin1( tokens[i].token ).lower();
+ const TQString token = TQString::fromLatin1( tokens[i].token ).lower();
for ( unsigned int j = 0 ; j < tokens[i].numDesc ; ++j ) {
const Desc & desc = tokens[i].desc[j];
assert( desc.display );
@@ -124,19 +124,19 @@ static const Map & makeMap() { // return a reference to a static to avoid copyin
return map;
}
-QString Kleo::QGpgMEProgressTokenMapper::map( const char * tokenUtf8, int subtoken, int cur, int tot ) const {
+TQString Kleo::QGpgMEProgressTokenMapper::map( const char * tokenUtf8, int subtoken, int cur, int tot ) const {
if ( !tokenUtf8 || !*tokenUtf8 )
- return QString::null;
+ return TQString::null;
if ( qstrcmp( tokenUtf8, "file:" ) == 0 )
- return QString::null; // gpgme's job
+ return TQString::null; // gpgme's job
- return map( QString::fromUtf8( tokenUtf8 ), subtoken, cur, tot );
+ return map( TQString::fromUtf8( tokenUtf8 ), subtoken, cur, tot );
}
-QString Kleo::QGpgMEProgressTokenMapper::map( const QString & token, int subtoken, int cur, int tot ) const {
+TQString Kleo::QGpgMEProgressTokenMapper::map( const TQString & token, int subtoken, int cur, int tot ) const {
if ( token.startsWith( "file:" ) )
- return QString::null; // gpgme's job
+ return TQString::null; // gpgme's job
static const Map & tokenMap = makeMap();
@@ -149,7 +149,7 @@ QString Kleo::QGpgMEProgressTokenMapper::map( const QString & token, int subtoke
if ( it2 == it1->second.end() )
return token;
const Desc & desc = it2->second;
- QString result = i18n( desc.display );
+ TQString result = i18n( desc.display );
if ( desc.useCur )
result = result.arg( cur );
if ( desc.useTot )