summaryrefslogtreecommitdiffstats
path: root/akregator/src/utils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/utils.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}