diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-04-22 12:06:53 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-04-22 15:15:16 +0200 |
commit | 60dee1173050fcd3c1068ff6f42e6e75e36e5d29 (patch) | |
tree | 64ded6ea6792b9d03873fd0adf7e044cd68933ee /patches/pyside-qt4.8+1.1.1 | |
parent | 2c66156514c9fb99ac7f8f21841c2411dfcd8926 (diff) | |
download | ptxdist-60dee1173050fcd3c1068ff6f42e6e75e36e5d29.tar.gz ptxdist-60dee1173050fcd3c1068ff6f42e6e75e36e5d29.tar.xz |
pyside: version bump 4.7+1.0.3 -> 4.8+1.1.1
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/pyside-qt4.8+1.1.1')
4 files changed, 182 insertions, 0 deletions
diff --git a/patches/pyside-qt4.8+1.1.1/0001-only-add-qaccessibleevent_wrapper.cpp-if-accessible-.patch b/patches/pyside-qt4.8+1.1.1/0001-only-add-qaccessibleevent_wrapper.cpp-if-accessible-.patch new file mode 100644 index 000000000..fd27f480b --- /dev/null +++ b/patches/pyside-qt4.8+1.1.1/0001-only-add-qaccessibleevent_wrapper.cpp-if-accessible-.patch @@ -0,0 +1,37 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Wed, 26 Jan 2011 01:20:31 +0100 +Subject: [PATCH] only add qaccessibleevent_wrapper.cpp if accessible is + enabled + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + PySide/QtGui/CMakeLists.txt | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/PySide/QtGui/CMakeLists.txt b/PySide/QtGui/CMakeLists.txt +index 7625634..e0e3878 100644 +--- a/PySide/QtGui/CMakeLists.txt ++++ b/PySide/QtGui/CMakeLists.txt +@@ -86,6 +86,13 @@ check_qt_class(QtGui QMacStyle QtGui_OPTIONAL_SRC QtGui_DROPPED + + qt4_wrap_cpp(QPYTEXTOBJECT_MOC "${pyside_SOURCE_DIR}/qpytextobject.h") + ++if (QT_QCONFIG MATCHES "accessibility") ++set(QtGui_accessible_SRC ++${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qaccessibleevent_wrapper.cpp) ++else() ++set(QtGui_accessible_SRC ) ++endif () ++ + set(QtGui_SRC + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstractbutton_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstractgraphicsshapeitem_wrapper.cpp +@@ -98,7 +105,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstractspinbox_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstracttextdocumentlayout_paintcontext_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstracttextdocumentlayout_selection_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qabstracttextdocumentlayout_wrapper.cpp +-${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qaccessibleevent_wrapper.cpp ++${QtGui_accessible_SRC} + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qactionevent_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qactiongroup_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qaction_wrapper.cpp diff --git a/patches/pyside-qt4.8+1.1.1/0002-add-include-iostream.patch b/patches/pyside-qt4.8+1.1.1/0002-add-include-iostream.patch new file mode 100644 index 000000000..8b28068fe --- /dev/null +++ b/patches/pyside-qt4.8+1.1.1/0002-add-include-iostream.patch @@ -0,0 +1,23 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Fri, 28 Jan 2011 16:03:10 +0100 +Subject: [PATCH] add "#include <iostream>" + +Without it std::copy() is undefined when Qt is build without stl. + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + libpyside/dynamicqmetaobject.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp +index 80d014e..c7d1034 100644 +--- a/libpyside/dynamicqmetaobject.cpp ++++ b/libpyside/dynamicqmetaobject.cpp +@@ -35,6 +35,7 @@ + #include <QLinkedList> + #include <QObject> + #include <cstring> ++#include <iostream> + #include <QDebug> + #include <QMetaMethod> + #include <shiboken.h> diff --git a/patches/pyside-qt4.8+1.1.1/0003-add-qws-support.patch b/patches/pyside-qt4.8+1.1.1/0003-add-qws-support.patch new file mode 100644 index 000000000..40b21fb07 --- /dev/null +++ b/patches/pyside-qt4.8+1.1.1/0003-add-qws-support.patch @@ -0,0 +1,116 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Mon, 20 Jun 2011 21:42:41 +0200 +Subject: [PATCH] add qws support + +based on a patch from OpenEmbedded: +http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/pyside/python-pyside-embedded/support-qws.patch + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + CMakeLists.txt | 4 ++++ + PySide/QtCore/typesystem_core_qws.xml | 26 ++++++++++++++++++++++++++ + PySide/QtGui/typesystem_gui_common.xml | 2 ++ + PySide/QtGui/typesystem_gui_qws.xml | 26 ++++++++++++++++++++++++++ + 4 files changed, 58 insertions(+) + create mode 100644 PySide/QtCore/typesystem_core_qws.xml + create mode 100644 PySide/QtGui/typesystem_gui_qws.xml + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a7ffbd5..e38b382 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -88,6 +88,7 @@ set(ENABLE_X11 "0") + set(ENABLE_MAC "0") + set(ENABLE_WIN "0") + set(ENABLE_SIMULATOR "0") ++set(ENABLE_QWS "0") + if(Q_WS_X11) + set(ENABLE_X11 "1") + if(Q_WS_MAEMO_5) +@@ -104,6 +105,9 @@ elseif(Q_WS_WIN) + elseif(Q_WS_SIMULATOR) + set(ENABLE_SIMULATOR "1") + set(AUTO_OS "simulator") ++elseif(Q_WS_QWS) ++ set(ENABLE_QWS "1") ++ set(AUTO_OS "qws") + else() + message(FATAL_ERROR "OS not supported") + endif() +diff --git a/PySide/QtCore/typesystem_core_qws.xml b/PySide/QtCore/typesystem_core_qws.xml +new file mode 100644 +index 0000000..eba223c +--- /dev/null ++++ b/PySide/QtCore/typesystem_core_qws.xml +@@ -0,0 +1,26 @@ ++<?xml version="1.0"?> ++<!-- ++ This file is part of PySide project. ++ Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ++ Contact: PySide team <contact@pyside.org> ++ ++ This library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ This library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with this library; if not, write to the Free Software ++ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++--> ++<typesystem package="PySide.QtCore"> ++ <primitive-type name="Qt::HANDLE" target-lang-api-name="PyLong"> ++ <!-- FIXME APIExtractor or shiboken do not support multiple includes by primitive type --> ++ <include file-name="QTextDocument" location="global"/> ++ </primitive-type> ++</typesystem> +diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml +index 552636a..f2f1d9a 100644 +--- a/PySide/QtGui/typesystem_gui_common.xml ++++ b/PySide/QtGui/typesystem_gui_common.xml +@@ -5622,6 +5622,8 @@ + <modify-function signature="QApplication(int&,char**,bool,int)" remove="all"/> + <modify-function signature="QApplication(int&,char**,QApplication::Type,int)" remove="all"/> + <!-- ### --> ++ <!-- QWS: FIXME: really fix this --> ++ <modify-function signature="setArgs(int,char**)" remove="all"/> + + <!-- ownership control transfer to qApp --> + <modify-function signature="setStyle(QStyle*)"> +diff --git a/PySide/QtGui/typesystem_gui_qws.xml b/PySide/QtGui/typesystem_gui_qws.xml +new file mode 100644 +index 0000000..d4a4793 +--- /dev/null ++++ b/PySide/QtGui/typesystem_gui_qws.xml +@@ -0,0 +1,26 @@ ++<?xml version="1.0"?> ++<!-- ++ This file is part of PySide project. ++ Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). ++ Contact: PySide team <contact@pyside.org> ++ ++ This library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ This library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with this library; if not, write to the Free Software ++ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++--> ++<typesystem package="PySide.QtGui"> ++ <value-type name="QCursor"> ++ <!-- Does not exist on QWS --> ++ <modify-function signature="QCursor(Qt::HANDLE)" remove="all"/> ++ </value-type> ++</typesystem> diff --git a/patches/pyside-qt4.8+1.1.1/series b/patches/pyside-qt4.8+1.1.1/series new file mode 100644 index 000000000..cce9c351b --- /dev/null +++ b/patches/pyside-qt4.8+1.1.1/series @@ -0,0 +1,6 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-only-add-qaccessibleevent_wrapper.cpp-if-accessible-.patch +0002-add-include-iostream.patch +0003-add-qws-support.patch +# edb0310fe7e30ecdc0404f3b02598af7 - git-ptx-patches magic |