diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-12 19:00:44 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:21 -0300 |
commit | f592efca989138d4bf25fedd60f3e4483c4722c4 (patch) | |
tree | aa784c73b2ef6b8c371e1360434748744b3f8ba5 /PySide/QtWebKit | |
parent | 93ea992d35224a28a70c3c189366b5c4c8ed85fc (diff) |
Add since attribute for classes and enums added on Qt4.6 and Qt4.7.
Diffstat (limited to 'PySide/QtWebKit')
-rw-r--r-- | PySide/QtWebKit/typesystem_webkit.xml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/PySide/QtWebKit/typesystem_webkit.xml b/PySide/QtWebKit/typesystem_webkit.xml index 177a29c16..45f498ef9 100644 --- a/PySide/QtWebKit/typesystem_webkit.xml +++ b/PySide/QtWebKit/typesystem_webkit.xml @@ -47,7 +47,7 @@ <modify-function signature="print(QPrinter*)const" rename="print_" /> </object-type> <object-type name="QWebFrame"> - <enum-type name="RenderLayer"/> + <enum-type name="RenderLayer" since="4.6"/> <modify-function signature="addToJavaScriptWindowObject(QString,QObject*)"> <modify-argument index="2"> <parent index="this" action="add"/> @@ -82,7 +82,7 @@ <enum-type name="WebAction"/> <enum-type name="WebWindowType"/> <!-- Qt 4.6 --> - <enum-type name="ErrorDomain"/> + <enum-type name="ErrorDomain" since="4.6"/> <enum-type name="Extension"/> <value-type name="ChooseMultipleFilesExtensionOption" /> @@ -99,8 +99,10 @@ // Cast the parameters according to the extension type if (extension == QWebPage::ChooseMultipleFilesExtension) %out = %CONVERTTOPYTHON[ChooseMultipleFilesExtensionOption*](reinterpret_cast<const ChooseMultipleFilesExtensionOption*>(option)); + #if QT_VERSION >= 0x040600 else if (extension == QWebPage::ErrorPageExtension) %out = %CONVERTTOPYTHON[ErrorPageExtensionOption*](reinterpret_cast<const ErrorPageExtensionOption*>(option)); + #endif </conversion-rule> </modify-argument> <modify-argument index="3" invalidate-after-use="yes"> @@ -109,8 +111,10 @@ // Cast the parameters according to the extension type if (extension == QWebPage::ChooseMultipleFilesExtension) %out = %CONVERTTOPYTHON[ChooseMultipleFilesExtensionReturn*](reinterpret_cast<const ChooseMultipleFilesExtensionReturn*>(output)); + #if QT_VERSION >= 0x040600 else if (extension == QWebPage::ErrorPageExtension) %out = %CONVERTTOPYTHON[ErrorPageExtensionReturn*](reinterpret_cast<const ErrorPageExtensionReturn*>(output)); + #endif </conversion-rule> </modify-argument> </modify-function> @@ -166,10 +170,10 @@ <value-type name="QWebSecurityOrigin"/> <!-- Qt 4.6 --> - <object-type name="QGraphicsWebView"/> - <object-type name="QWebInspector"/> - <value-type name="QWebElement"> + <object-type name="QGraphicsWebView" since="4.6"/> + <object-type name="QWebInspector" since="4.6"/> + <value-type name="QWebElement" since="4.6"> <enum-type name="StyleResolveStrategy"/> </value-type> - <value-type name="QWebElementCollection"/> + <value-type name="QWebElementCollection" since="4.6"/> </typesystem> |