diff options
author | Michele Calgaro <[email protected]> | 2023-08-24 21:28:39 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-31 16:31:47 +0900 |
commit | 7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch) | |
tree | d92d61649487df1a2fbd200d4ead11a7f16ba63f /src/kvilib/file/kvi_fileutils.cpp | |
parent | cafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff) | |
download | kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.tar.gz kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.zip |
Drop USE_QT4 code
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31)
Diffstat (limited to 'src/kvilib/file/kvi_fileutils.cpp')
-rw-r--r-- | src/kvilib/file/kvi_fileutils.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/kvilib/file/kvi_fileutils.cpp b/src/kvilib/file/kvi_fileutils.cpp index 8e81f861..9bea5c96 100644 --- a/src/kvilib/file/kvi_fileutils.cpp +++ b/src/kvilib/file/kvi_fileutils.cpp @@ -105,11 +105,7 @@ namespace KviFileUtils TQString createdDir; #ifdef COMPILE_ON_WINDOWS -#ifdef COMPILE_USE_QT4 - int idx = dir.indexOf(':'); -#else int idx = dir.find(':'); -#endif if(idx == 1) { createdDir = dir.left(2); @@ -213,20 +209,12 @@ namespace KviFileUtils { #ifdef COMPILE_ON_WINDOWS szPath.replace('/',"\\"); -#ifdef COMPILE_USE_QT4 - szPath.replace("\\\\","\\"); -#else while(szPath.find("\\\\") != -1)szPath.replace("\\\\","\\"); -#endif // FIXME: Use the default drive here ? if(szPath.startsWith("\\"))szPath.prepend("C:"); #else szPath.replace('\\',"/"); -#ifdef COMPILE_USE_QT4 - szPath.replace("//","/"); -#else while(KviTQString::find(szPath,"//") != -1)szPath.replace("//","/"); -#endif // deal with windows paths if((szPath.length() > 2) && (szPath.at(0) != TQChar('/'))) { @@ -235,12 +223,8 @@ namespace KviFileUtils szPath.remove(0,2); } } -#ifdef COMPILE_USE_QT4 - szPath=TQDir::cleanPath(szPath); -#else szPath=TQDir::cleanDirPath(szPath); #endif -#endif } |