summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqfileinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqfileinfo.cpp')
-rw-r--r--qtinterface/tqfileinfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qtinterface/tqfileinfo.cpp b/qtinterface/tqfileinfo.cpp
index aabe4a3..5d56e8a 100644
--- a/qtinterface/tqfileinfo.cpp
+++ b/qtinterface/tqfileinfo.cpp
@@ -21,3 +21,11 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
#include <tqfileinfo.h>
+
+#ifdef USE_QT4
+
+QFileInfo::operator QFileInfo *() const {
+ return const_cast<QFileInfo *>(this);
+}
+
+#endif // USE_QT4 \ No newline at end of file