diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-07 19:25:16 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-07 19:25:16 +0000 |
commit | 77ead0ba5f91ad6fd04fca1ab1e2b6847bf88136 (patch) | |
tree | 82bf3c5b668e0d2f2f3649421e2934a1b9896d53 /qtinterface/tqdir.cpp | |
parent | 0630a9067e5db373c6fd33bbe8145e29f18e9a54 (diff) | |
download | tqtinterface-77ead0ba5f91ad6fd04fca1ab1e2b6847bf88136.tar.gz tqtinterface-77ead0ba5f91ad6fd04fca1ab1e2b6847bf88136.zip |
Yet more Qt4 API extensions...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1160323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqdir.cpp')
-rw-r--r-- | qtinterface/tqdir.cpp | 17 |
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 |