summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqdir.cpp')
-rw-r--r--qtinterface/tqdir.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/qtinterface/tqdir.cpp b/qtinterface/tqdir.cpp
index e53c899..328148e 100644
--- a/qtinterface/tqdir.cpp
+++ b/qtinterface/tqdir.cpp
@@ -21,3 +21,20 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
#include <tqdir.h>
+
+#ifdef USE_QT4
+
+bool QDir::exists( const QString &name, bool acceptAbsPath )
+{
+ if ( name.isEmpty() ) {
+#if defined(QT_CHECK_NULL)
+ qWarning( "QDir::exists: Empty or null file name" );
+#endif
+ return FALSE;
+ }
+// QString tmp = filePath( name, acceptAbsPath );
+ QString tmp = filePath( name );
+ return QFile::exists( tmp );
+}
+
+#endif // USE_QT4 \ No newline at end of file