From 77ead0ba5f91ad6fd04fca1ab1e2b6847bf88136 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 7 Aug 2010 19:25:16 +0000 Subject: Yet more Qt4 API extensions... git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1160323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqdir.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'qtinterface/tqdir.cpp') 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 #include + +#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 -- cgit v1.2.3