summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt4/Qt/qlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt4/Qt/qlist.h')
-rw-r--r--qtinterface/tqt4/Qt/qlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtinterface/tqt4/Qt/qlist.h b/qtinterface/tqt4/Qt/qlist.h
index c3661e9..39c3b83 100644
--- a/qtinterface/tqt4/Qt/qlist.h
+++ b/qtinterface/tqt4/Qt/qlist.h
@@ -119,6 +119,8 @@ public:
operator bool() const;
+ inline operator const QList<T> *() const { return const_cast<QList<T> *>(this); }
+
inline int size() const { return p.size(); }
inline void detach() { if (d->ref != 1) detach_helper(); }