summaryrefslogtreecommitdiffstats
path: root/src/kvilib/file/kvi_file.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-24 21:28:39 +0900
committerMichele Calgaro <[email protected]>2023-08-31 16:31:47 +0900
commit7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch)
treed92d61649487df1a2fbd200d4ead11a7f16ba63f /src/kvilib/file/kvi_file.cpp
parentcafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff)
downloadkvirc-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_file.cpp')
-rw-r--r--src/kvilib/file/kvi_file.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/kvilib/file/kvi_file.cpp b/src/kvilib/file/kvi_file.cpp
index 227a4997..d904540a 100644
--- a/src/kvilib/file/kvi_file.cpp
+++ b/src/kvilib/file/kvi_file.cpp
@@ -45,20 +45,12 @@ KviFile::~KviFile()
bool KviFile::openForReading()
{
-#ifdef COMPILE_USE_QT4
- return open(TQFile::ReadOnly);
-#else
return open(IO_ReadOnly);
-#endif
}
bool KviFile::openForWriting(bool bAppend)
{
-#ifdef COMPILE_USE_QT4
- return open(TQFile::WriteOnly | (bAppend ? TQFile::Append : TQFile::Truncate));
-#else
return open(IO_WriteOnly | (bAppend ? IO_Append : IO_Truncate));
-#endif
}
@@ -77,7 +69,6 @@ bool KviFile::load(TQByteArray &bData)
return true;
}
-#ifndef COMPILE_USE_QT4
bool KviFile::save(const KviTQCString &szData)
{
@@ -95,7 +86,6 @@ bool KviFile::load(KviTQCString &szData)
return true;
}
-#endif
bool KviFile::save(const TQString &szData)