aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-08-02 17:12:18 -0300
committerLuciano Wolf <luciano.wolf@openbossa.org>2010-08-02 17:42:00 -0300
commit34a06b8de43767cc206d2a200c84e5505516e111 (patch)
treea3eacab74a0ce7454618746b78d03614d26342ca /PySide/QtCore
parent630a4062ff9d837ae0f91056ab610183bf47370a (diff)
Fix bug273 - QT_VERSION and QT_VERSION_STR constants.
Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r--PySide/QtCore/typesystem_core.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 84cf90632..9d38208ed 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -522,6 +522,12 @@
%PYARG_0 = %CONVERTTOPYTHON[long](qAbs(%1));
</inject-code>
</add-function>
+
+ <inject-code class="target" position="end">
+ PyModule_AddIntConstant(module, "QT_VERSION", QT_VERSION);
+ PyModule_AddStringConstant(module, "QT_VERSION_STR", QT_VERSION_STR);
+ </inject-code>
+
<enum-type name="QtMsgType"/>
<enum-type name="QSystemSemaphore::AccessMode"/>
<enum-type name="QSystemSemaphore::SystemSemaphoreError"/>