summaryrefslogtreecommitdiffstats
path: root/src/tools/qfileinfo.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-09 23:09:59 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-09 23:09:59 +0900
commit83991febd2b98788a0a018e187de0dfb7d95b500 (patch)
treeec363502a3d11082cc54d17b7969f8ba605e1f01 /src/tools/qfileinfo.cpp
parent48ea22d00b58a37508567756b2955582cd9efe5a (diff)
downloadtqt3-83991febd2b98788a0a018e187de0dfb7d95b500.tar.gz
tqt3-83991febd2b98788a0a018e187de0dfb7d95b500.zip
Remove Qt4 related stuff
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/qfileinfo.cpp')
-rw-r--r--src/tools/qfileinfo.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tools/qfileinfo.cpp b/src/tools/qfileinfo.cpp
index 763324d15..466e62cc4 100644
--- a/src/tools/qfileinfo.cpp
+++ b/src/tools/qfileinfo.cpp
@@ -45,7 +45,7 @@
#include "ntqdir.h"
#include "qfiledefs_p.h"
#include "ntqdeepcopy.h"
-#if defined(QT_LARGEFILE_SUPPORT) && !defined(QT_ABI_QT4)
+#if defined(QT_LARGEFILE_SUPPORT)
#include <limits.h>
#endif
@@ -576,18 +576,12 @@ bool TQFileInfo::convertToAbs()
Returns the file size in bytes, or 0 if the file does not exist or
if the size is 0 or if the size cannot be fetched.
*/
-#if defined(QT_ABI_QT4)
-TQIODevice::Offset TQFileInfo::size() const
-#else
uint TQFileInfo::size() const
-#endif
{
if ( !fic || !cache )
doStat();
if ( fic )
-#if defined(QT_ABI_QT4)
- return (TQIODevice::Offset)fic->st.st_size;
-#elif defined(QT_LARGEFILE_SUPPORT)
+#if defined(QT_LARGEFILE_SUPPORT)
return (uint)fic->st.st_size > UINT_MAX ? UINT_MAX : (uint)fic->st.st_size;
#else
return (uint)fic->st.st_size;