summaryrefslogtreecommitdiffstats
path: root/akregator/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/utils.cpp')
-rw-r--r--akregator/src/utils.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/akregator/src/utils.cpp b/akregator/src/utils.cpp
index c91a44976..e4a24209e 100644
--- a/akregator/src/utils.cpp
+++ b/akregator/src/utils.cpp
@@ -23,17 +23,17 @@
*/
#include "utils.h"
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqstring.h>
namespace Akregator {
-QString Utils::stripTags(const QString& str)
+TQString Utils::stripTags(const TQString& str)
{
- return QString(str).replace(QRegExp("<[^>]*>"), "");
+ return TQString(str).replace(TQRegExp("<[^>]*>"), "");
}
-uint Utils::calcHash(const QString& str)
+uint Utils::calcHash(const TQString& str)
{
if (str.isNull()) // handle null string as "", prevents crash
return calcHash("");
@@ -44,14 +44,14 @@ uint Utils::calcHash(const QString& str)
return hash;
}
-QString Utils::fileNameForUrl(const QString& url_p)
+TQString Utils::fileNameForUrl(const TQString& url_p)
{
- QString url2(url_p);
+ TQString url2(url_p);
url2 = url2.replace("/", "_").replace(":", "_");
if (url2.length() > 255)
- url2 = url2.left(200) + QString::number(Akregator::Utils::calcHash(url2), 16);
+ url2 = url2.left(200) + TQString::number(Akregator::Utils::calcHash(url2), 16);
return url2;
}