summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt.cpp')
-rw-r--r--qtinterface/tqt.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qtinterface/tqt.cpp b/qtinterface/tqt.cpp
index f60263c..184c994 100644
--- a/qtinterface/tqt.cpp
+++ b/qtinterface/tqt.cpp
@@ -30,4 +30,12 @@ QList<T>::operator bool() const {
return !this.isEmpty();
}
+QBool::operator uint () const {
+ return b ? static_cast<uint>(1) : static_cast<uint>(0);
+}
+
+QChar::operator int () const {
+ return static_cast<int>(*this);
+}
+
#endif // USE_QT4 \ No newline at end of file