diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-01 19:00:36 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-10-01 19:45:30 -0300 |
commit | 940b90e80a7ec21e513ac16ff73d8fa8cf23d489 (patch) | |
tree | e75a0dd76faab2379d23f72a1e8ac6ab82e98b75 /PySide/QtCore/typesystem_core.xml | |
parent | 288a53369fa8df74a92c7517e8744c5139797c78 (diff) |
Implement python conversion to QTime, QDate, QDateTime
Fixes bug #371.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtCore/typesystem_core.xml')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 68bd04cdd..704e8d468 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -721,6 +721,10 @@ <value-type name="QBasicTimer"/> <value-type name="QByteArrayMatcher"/> <value-type name="QDate" hash-function="PySide::hash" > + <conversion-rule class="target" file="qdate_conversions.h"/> + <extra-includes> + <include file-name="datetime.h" location="global"/> + </extra-includes> <enum-type name="MonthNameType"/> <modify-function signature="julianToGregorian(uint,int&,int&,int&)" remove="all"/> <modify-function signature="getDate(int*,int*,int*)" > @@ -756,7 +760,14 @@ </inject-code> </modify-function> </value-type> - <value-type name="QDateTime" hash-function="PySide::hash"/> + + <value-type name="QDateTime" hash-function="PySide::hash"> + <conversion-rule class="target" file="qdatetime_conversions.h"/> + <extra-includes> + <include file-name="datetime.h" location="global"/> + </extra-includes> + </value-type> + <value-type name="QDir"> <enum-type name="Filter" flags="QDir::Filters"/> <enum-type name="SortFlag" flags="QDir::SortFlags" /> @@ -818,7 +829,12 @@ <modify-function signature="rwidth()" remove="all" /> </value-type> - <value-type name="QTime" hash-function="PySide::hash"/> + <value-type name="QTime" hash-function="PySide::hash"> + <conversion-rule class="target" file="qtime_conversions.h"/> + <extra-includes> + <include file-name="datetime.h" location="global"/> + </extra-includes> + </value-type> <value-type name="QPersistentModelIndex"> <modify-function signature="internalPointer()const" remove="all"/> <modify-function signature="operator const QModelIndex&()const" remove="all" /> <!-- FIXME Removed due to a shiboken bug--> |