summaryrefslogtreecommitdiffstats
path: root/tdecore/kurl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-13 11:10:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-15 10:29:09 +0900
commit5e51787f9af4fd86450fab9e787b4037a772bca3 (patch)
treea792ad1d832ef77fd48f6c545d5bf35f8490d6eb /tdecore/kurl.cpp
parent3b1a091b3f8c0e88904ed2395e9d7efe590c9495 (diff)
downloadtdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.tar.gz
tdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 03aa7238b34bb438632b6d572b008e32960f0895)
Diffstat (limited to 'tdecore/kurl.cpp')
-rw-r--r--tdecore/kurl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/kurl.cpp b/tdecore/kurl.cpp
index c1adf1bec..8122bb4bf 100644
--- a/tdecore/kurl.cpp
+++ b/tdecore/kurl.cpp
@@ -47,7 +47,7 @@
#include <tqtextcodec.h>
#include <tqmutex.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
# define KURL_ROOTDIR_PATH "C:/"
#else
# define KURL_ROOTDIR_PATH "/"
@@ -386,7 +386,7 @@ static TQString cleanpath(const TQString &_path, bool cleanDirSeparator, bool de
orig_pos = pos;
}
-#ifdef Q_WS_WIN // prepend drive letter if exists (js)
+#ifdef TQ_WS_WIN // prepend drive letter if exists (js)
if (orig_pos >= 2 && isalpha(path[0].latin1()) && path[1]==':') {
result.prepend(TQString(path[0])+":");
}
@@ -670,7 +670,7 @@ void KURL::parse( const TQString& _url, int encoding_hint )
// Node 1: Accept alpha or slash
TQChar x = buf[pos++];
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
/* win32: accept <letter>: or <letter>:/ or <letter>:\ */
const bool alpha = isalpha((int)x);
if (alpha && len<2)
@@ -791,7 +791,7 @@ void KURL::parseURL( const TQString& _url, int encoding_hint )
// Node 1: Accept alpha or slash
TQChar x = buf[pos++];
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
/* win32: accept <letter>: or <letter>:/ or <letter>:\ */
const bool alpha = isalpha((int)x);
if (alpha && len<2)
@@ -1628,7 +1628,7 @@ TQString KURL::prettyURL( int _trailing, AdjustementFlags _flags) const
TQString u = prettyURL(_trailing);
if (_flags & StripFileProtocol && u.startsWith("file://")) {
u.remove(0, 7);
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return TQDir::convertSeparators(u);
#endif
}