diff options
author | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-08-02 17:12:18 -0300 |
---|---|---|
committer | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-08-02 17:42:00 -0300 |
commit | 34a06b8de43767cc206d2a200c84e5505516e111 (patch) | |
tree | a3eacab74a0ce7454618746b78d03614d26342ca /PySide/QtCore | |
parent | 630a4062ff9d837ae0f91056ab610183bf47370a (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.xml | 6 |
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"/> |