summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt.cpp')
-rw-r--r--qtinterface/tqt.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qtinterface/tqt.cpp b/qtinterface/tqt.cpp
index 0e7addb..f60263c 100644
--- a/qtinterface/tqt.cpp
+++ b/qtinterface/tqt.cpp
@@ -19,4 +19,15 @@ Boston, MA 02110-1301, USA.
*/
+#include <tqt.h>
+// Various methods that don't have a proper home (yet)
+
+#ifdef USE_QT4
+
+template <typename T>
+QList<T>::operator bool() const {
+ return !this.isEmpty();
+}
+
+#endif // USE_QT4 \ No newline at end of file