aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build_scripts/utils.py13
-rw-r--r--coin_build_instructions.py12
-rw-r--r--coin_test_instructions.py8
m---------sources/pyside2-tools0
-rw-r--r--sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt8
-rw-r--r--sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml9
-rw-r--r--sources/pyside2/PySide2/QtCore/CMakeLists.txt3
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_common.xml12
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt5
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml1
-rw-r--r--sources/pyside2/PySide2/QtNetwork/typesystem_network.xml5
-rw-r--r--sources/pyside2/PySide2/QtTest/typesystem_test.xml1
-rw-r--r--sources/pyside2/doc/extras/PySide.QtHelp.rst19
-rw-r--r--sources/pyside2/pyside_version.py2
-rw-r--r--sources/pyside2/tests/QtCore/qabstractitemmodel_test.py4
-rw-r--r--sources/pyside2/tests/QtCore/qrandomgenerator_test.py49
-rw-r--r--sources/pyside2/tests/mac/qmacstyle_test.py8
-rw-r--r--sources/shiboken2/shiboken_version.py2
18 files changed, 121 insertions, 40 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py
index cca93d09f..f535db636 100644
--- a/build_scripts/utils.py
+++ b/build_scripts/utils.py
@@ -1117,3 +1117,16 @@ def run_instruction(instruction, error):
if result != 0:
print("ERROR : " + error)
exit(result)
+
+def acceptCITestConfiguration(hostOS, hostOSVer, targetArch, compiler):
+ # Disable unsupported CI configs for now
+ # NOTE: String must match with QT CI's storagesturct thrift
+ if hostOSVer in ["WinRT_10"]:
+ print("Disabled " + hostOSVer + " from Coin configuration")
+ return False
+ # With 5.11 CI will create two sets of release binaries, one with msvc 2015 and one with msvc 2017
+ # we shouldn't release the 2015 version. BUT, 32 bit build is done only on msvc 2015...
+ if compiler in ["MSVC2015"] and targetArch in ["X86_64"]:
+ print("Disabled " + compiler + " to " + targetArch + " from Coin configuration")
+ return False
+ return True
diff --git a/coin_build_instructions.py b/coin_build_instructions.py
index df70d52ee..65e198be4 100644
--- a/coin_build_instructions.py
+++ b/coin_build_instructions.py
@@ -43,6 +43,7 @@ from build_scripts.utils import get_qtci_virtualEnv
from build_scripts.utils import run_instruction
from build_scripts.utils import rmtree
from build_scripts.utils import get_python_dict
+from build_scripts.utils import acceptCITestConfiguration
import os
# Values must match COIN thrift
@@ -98,9 +99,7 @@ def call_setup(python_ver):
run_instruction(["virtualenv", "-p", _pExe, _env], "Failed to create virtualenv")
install_pip_dependencies(env_pip, ["six", "wheel"])
cmd = [env_python, "setup.py"]
- # With 5.11 CI will create two sets of release binaries, one with msvc 2015 and one with msvc 2017
- # we shouldn't release the 2015 version.
- if CI_RELEASE_CONF and CI_COMPILER not in ["MSVC2017"]:
+ if CI_RELEASE_CONF:
cmd += ["bdist_wheel", "--standalone"]
else:
cmd += ["build"]
@@ -123,12 +122,7 @@ def call_setup(python_ver):
run_instruction(cmd, "Failed to run setup.py")
def run_build_instructions():
- # Disable unsupported configs for now
- if CI_HOST_OS_VER in ["WinRT_10"]:
- print("Disabled " + CI_HOST_OS_VER + " from Coin configuration")
- exit()
- if CI_HOST_ARCH == "X86_64" and CI_TARGET_ARCH == "X86":
- print("Disabled 32 bit build on 64 bit from Coin configuration, until toolchains provisioned")
+ if not acceptCITestConfiguration(CI_HOST_OS, CI_HOST_OS_VER, CI_TARGET_ARCH, CI_COMPILER):
exit()
# Uses default python, hopefully we have python2 installed on all hosts
diff --git a/coin_test_instructions.py b/coin_test_instructions.py
index ffbf001fa..bd65b5b7e 100644
--- a/coin_test_instructions.py
+++ b/coin_test_instructions.py
@@ -42,6 +42,7 @@ from build_scripts.utils import install_pip_dependencies
from build_scripts.utils import get_qtci_virtualEnv
from build_scripts.utils import run_instruction
from build_scripts.utils import rmtree
+from build_scripts.utils import acceptCITestConfiguration
import os
# Values must match COIN thrift
@@ -72,12 +73,7 @@ def call_testrunner(python_ver, buildnro):
run_instruction(cmd, "Failed to run testrunner.py")
def run_test_instructions():
- # Disable unsupported configs for now
- if CI_HOST_OS_VER in ["WinRT_10"]:
- print("Disabled " + CI_HOST_OS_VER + " from Coin configuration")
- exit()
- if CI_HOST_ARCH == "X86_64" and CI_TARGET_ARCH == "X86":
- print("Disabled 32 bit build on 64 bit from Coin configuration, until toolchains provisioned")
+ if not acceptCITestConfiguration(CI_HOST_OS, CI_HOST_OS_VER, CI_TARGET_ARCH, CI_COMPILER):
exit()
os.chdir(CI_ENV_AGENT_DIR)
diff --git a/sources/pyside2-tools b/sources/pyside2-tools
-Subproject b32eedc27f61d2ce4a8eed61b5adc2b75ce703b
+Subproject f1b775537e7fbd718516749583b2abf1cb6adbc
diff --git a/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt
index 07bd3d89f..1b859ca1e 100644
--- a/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt
+++ b/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt
@@ -117,6 +117,14 @@ if (Qt53DRender_VERSION VERSION_EQUAL 5.10.0 OR Qt53DRender_VERSION VERSION_GREA
)
endif()
+if (Qt53DRender_VERSION VERSION_EQUAL 5.11.0 OR Qt53DRender_VERSION VERSION_GREATER 5.11.0)
+ list(APPEND Qt3DRender_SRC
+ ${Qt3DRender_GEN_DIR}/qt3drender_qabstractraycaster_wrapper.cpp
+ ${Qt3DRender_GEN_DIR}/qt3drender_qraycaster_wrapper.cpp
+ ${Qt3DRender_GEN_DIR}/qt3drender_qraycasterhit_wrapper.cpp
+ ${Qt3DRender_GEN_DIR}/qt3drender_qscreenraycaster_wrapper.cpp)
+endif()
+
set(Qt3DRender_include_dirs
${Qt3DRender_SOURCE_DIR}
${Qt3DRender_BINARY_DIR}
diff --git a/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml b/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml
index 037fddd44..44274766f 100644
--- a/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml
+++ b/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml
@@ -48,6 +48,10 @@
<object-type name="QAbstractLight">
<enum-type name="Type"/>
</object-type>
+ <object-type name="QAbstractRayCaster" since="5.11">
+ <enum-type name="RunMode"/>
+ <enum-type name="FilterMode"/>
+ </object-type>
<object-type name="QAbstractTexture">
<enum-type name="CubeMapFace"/>
<enum-type name="ComparisonFunction"/>
@@ -163,6 +167,10 @@
</object-type>
<object-type name="QPolygonOffset"/>
<object-type name="QProximityFilter" since="5.10"/>
+ <object-type name="QRayCaster" since="5.11"/>
+ <value-type name="QRayCasterHit" since="5.11">
+ <enum-type name="HitType"/>
+ </value-type>
<object-type name="QRenderAspect">
<enum-type name="RenderType"/>
</object-type>
@@ -186,6 +194,7 @@
<enum-type name="ComponentType"/>
</object-type>
<object-type name="QScissorTest"/>
+ <object-type name="QScreenRayCaster" since="5.11"/>
<object-type name="QSeamlessCubemap"/>
<object-type name="QShaderData"/>
<object-type name="QShaderProgram">
diff --git a/sources/pyside2/PySide2/QtCore/CMakeLists.txt b/sources/pyside2/PySide2/QtCore/CMakeLists.txt
index f086a3f3d..1d0b7d413 100644
--- a/sources/pyside2/PySide2/QtCore/CMakeLists.txt
+++ b/sources/pyside2/PySide2/QtCore/CMakeLists.txt
@@ -96,6 +96,8 @@ ${QtCore_GEN_DIR}/qpointf_wrapper.cpp
${QtCore_GEN_DIR}/qprocess_wrapper.cpp
${QtCore_GEN_DIR}/qprocessenvironment_wrapper.cpp
${QtCore_GEN_DIR}/qpropertyanimation_wrapper.cpp
+${QtCore_GEN_DIR}/qrandomgenerator_wrapper.cpp
+${QtCore_GEN_DIR}/qrandomgenerator64_wrapper.cpp
${QtCore_GEN_DIR}/qreadlocker_wrapper.cpp
${QtCore_GEN_DIR}/qreadwritelock_wrapper.cpp
${QtCore_GEN_DIR}/qrect_wrapper.cpp
@@ -108,6 +110,7 @@ ${QtCore_GEN_DIR}/qresource_wrapper.cpp
${QtCore_GEN_DIR}/qrunnable_wrapper.cpp
${QtCore_GEN_DIR}/qsavefile_wrapper.cpp
${QtCore_GEN_DIR}/qsemaphore_wrapper.cpp
+${QtCore_GEN_DIR}/qsemaphorereleaser_wrapper.cpp
${QtCore_GEN_DIR}/qsequentialanimationgroup_wrapper.cpp
${QtCore_GEN_DIR}/qsettings_wrapper.cpp
${QtCore_GEN_DIR}/qsignalblocker_wrapper.cpp
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
index 501f2253f..47d43f2eb 100644
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
+++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
@@ -1794,6 +1794,7 @@
</value-type>
<value-type name="QUuid">
+ <enum-type name="StringFormat" since="5.11"/>
<enum-type name="Variant"/>
<enum-type name="Version"/>
<add-function signature="__repr__" return-type="PyObject*">
@@ -1821,6 +1822,7 @@
<value-type name="QLocale">
<enum-type name="Country" />
+ <enum-type name="DataSizeFormat" flags="DataSizeFormats" since="5.10"/>
<enum-type name="FloatingPointPrecisionOption" since="5.7"/>
<enum-type name="FormatType"/>
<enum-type name="Language" />
@@ -2045,6 +2047,7 @@
</object-type>
<object-type name="QAbstractItemModel">
+ <enum-type name="CheckIndexOption" flags="CheckIndexOptions" class="yes" since="5.11"/>
<enum-type name="LayoutChangeHint" />
<!-- This function was replaced by a added function -->
<modify-function signature="createIndex(int,int,void*)const" remove="all"/>
@@ -2920,6 +2923,7 @@
</object-type>
<object-type name="QFileDevice" since="5.0">
<enum-type name="FileError"/>
+ <enum-type name="FileTime" since="5.10"/>
<enum-type name="MemoryMapFlags"/>
<enum-type name="Permission" flags="Permissions"/>
<enum-type name="FileHandleFlag" flags="FileHandleFlags"/>
@@ -3084,10 +3088,18 @@
<modify-function signature="lock()" allow-thread="yes"/>
<modify-function signature="tryLock(int)" allow-thread="yes"/>
</object-type>
+ <object-type name="QRandomGenerator" since="5.10">
+ <modify-function signature="global()" rename="global_" allow-thread="yes" />
+ <modify-function signature="operator()()" remove="all"/>
+ </object-type>
+ <object-type name="QRandomGenerator64" since="5.10">
+ <modify-function signature="operator()()" remove="all"/>
+ </object-type>
<object-type name="QSemaphore">
<modify-function signature="acquire(int)" allow-thread="yes"/>
<modify-function signature="tryAcquire(int,int)" allow-thread="yes"/>
</object-type>
+ <object-type name="QSemaphoreReleaser" since="5.10"/>
<object-type name="QSocketNotifier">
<enum-type name="Type"/>
diff --git a/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt b/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt
index a89ba8fe8..e9caaa64b 100644
--- a/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt
+++ b/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt
@@ -97,6 +97,11 @@ ${QtMultimedia_GEN_DIR}/qvideowindowcontrol_wrapper.cpp
${QtMultimedia_GEN_DIR}/qtmultimedia_module_wrapper.cpp
)
+if (Qt5Multimedia_VERSION VERSION_EQUAL 5.11.0 OR Qt5Multimedia_VERSION VERSION_GREATER 5.11.0)
+ list(APPEND QtMultimedia_SRC
+ ${QtMultimedia_GEN_DIR}/qcustomaudiorolecontrol_wrapper.cpp)
+endif()
+
set(QtMultimedia_include_dirs ${QtMultimedia_SOURCE_DIR}
${QtMultimedia_BINARY_DIR}
${Qt5Core_INCLUDE_DIRS}
diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
index 011f35935..5486fb157 100644
--- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
+++ b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
@@ -269,6 +269,7 @@
<value-type name="QMediaContent"/>
<object-type name="QMediaGaplessPlaybackControl"/>
<object-type name="QMediaControl"/>
+ <object-type name="QCustomAudioRoleControl" since="5.11"/>
<object-type name="QMediaNetworkAccessControl"/>
<!-- Causes compile errors
<namespace-type name="QMediaMetaData"/>
diff --git a/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml b/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml
index a9040c318..e4235e070 100644
--- a/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml
+++ b/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml
@@ -209,10 +209,13 @@
<modify-function signature="lookupHost(QString,QObject*,const char*)" access="private"/>
</value-type>
- <value-type name="QNetworkAddressEntry" />
+ <value-type name="QNetworkAddressEntry">
+ <enum-type name="DnsEligibilityStatus" since="5.11"/>
+ </value-type>
<value-type name="QNetworkInterface">
<enum-type name="InterfaceFlag" flags="InterfaceFlags"/>
+ <enum-type name="InterfaceType" since="5.11"/>
</value-type>
<value-type name="QNetworkProxy">
diff --git a/sources/pyside2/PySide2/QtTest/typesystem_test.xml b/sources/pyside2/PySide2/QtTest/typesystem_test.xml
index 564968a3c..86c12f888 100644
--- a/sources/pyside2/PySide2/QtTest/typesystem_test.xml
+++ b/sources/pyside2/PySide2/QtTest/typesystem_test.xml
@@ -57,6 +57,7 @@
<rejection class="QTest" function-name="toHexRepresentation"/>
<rejection class="QTest" function-name="qWait"/>
<rejection class="QTest" function-name="qFail"/>
+ <rejection class="QTest" function-name="qInit"/>
<rejection class="QTest" function-name="qExec"/>
<rejection class="QTest" function-name="qData"/>
<rejection class="QTest" function-name="qWarn"/>
diff --git a/sources/pyside2/doc/extras/PySide.QtHelp.rst b/sources/pyside2/doc/extras/PySide.QtHelp.rst
index 5e101a795..239f4faa6 100644
--- a/sources/pyside2/doc/extras/PySide.QtHelp.rst
+++ b/sources/pyside2/doc/extras/PySide.QtHelp.rst
@@ -3,22 +3,3 @@ To include the definitions of the module's classes, use the following directive:
::
import PySide2.QtHelp
-
-License Information
--------------------
-
-The QtHelp module uses the CLucene indexing library to provide full-text searching capabilities for Qt Assistant and applications that use the features of QtHelp.
-
-Qt Commercial Edition licensees that wish to distribute applications that use these features of the QtHelp module need to be aware of their obligations under the GNU Lesser General Public License (LGPL).
-
-Developers using the Open Source Edition can choose to redistribute the module under the appropriate version of the GNU LGPL; version 2.1 for applications and libraries licensed under the GNU GPL version 2, or version 3 for applications and libraries licensed under the GNU GPL version 3.
-
-Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
-
-Changes are Copyright (C) 2016 The Qt Company Ltd.
-
-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
diff --git a/sources/pyside2/pyside_version.py b/sources/pyside2/pyside_version.py
index 10cbd6956..ed24abfc8 100644
--- a/sources/pyside2/pyside_version.py
+++ b/sources/pyside2/pyside_version.py
@@ -38,7 +38,7 @@
#############################################################################
major_version = "5"
-minor_version = "9"
+minor_version = "11"
patch_version = "0"
pre_release_version_type = "a" # e.g. "a", "b", "rc".
pre_release_version = "1" # e.g "1", "2", (which means "beta1", "beta2", if type is "b")
diff --git a/sources/pyside2/tests/QtCore/qabstractitemmodel_test.py b/sources/pyside2/tests/QtCore/qabstractitemmodel_test.py
index 3f321c7d6..70b610c34 100644
--- a/sources/pyside2/tests/QtCore/qabstractitemmodel_test.py
+++ b/sources/pyside2/tests/QtCore/qabstractitemmodel_test.py
@@ -43,6 +43,10 @@ class TestQModelIndexInternalPointer(unittest.TestCase):
m = MyModel()
foo = Foo()
idx = m.createIndex(0,0, foo)
+ check = m.checkIndex(idx, QAbstractItemModel.CheckIndexOption.IndexIsValid
+ | QAbstractItemModel.CheckIndexOption.DoNotUseParent
+ | QAbstractItemModel.CheckIndexOption.ParentIsInvalid)
+ self.assertTrue(check)
def testPassQPersistentModelIndexAsQModelIndex(self):
# Related to bug #716
diff --git a/sources/pyside2/tests/QtCore/qrandomgenerator_test.py b/sources/pyside2/tests/QtCore/qrandomgenerator_test.py
new file mode 100644
index 000000000..7d80510a7
--- /dev/null
+++ b/sources/pyside2/tests/QtCore/qrandomgenerator_test.py
@@ -0,0 +1,49 @@
+#############################################################################
+##
+## Copyright (C) 2017 The Qt Company Ltd.
+## Contact: https://www.qt.io/licensing/
+##
+## This file is part of the test suite of PySide2.
+##
+## $QT_BEGIN_LICENSE:GPL-EXCEPT$
+## Commercial License Usage
+## Licensees holding valid commercial Qt licenses may use this file in
+## accordance with the commercial license agreement provided with the
+## Software or, alternatively, in accordance with the terms contained in
+## a written agreement between you and The Qt Company. For licensing terms
+## and conditions see https://www.qt.io/terms-conditions. For further
+## information use the contact form at https://www.qt.io/contact-us.
+##
+## GNU General Public License Usage
+## Alternatively, this file may be used under the terms of the GNU
+## General Public License version 3 as published by the Free Software
+## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+## included in the packaging of this file. Please review the following
+## information to ensure the GNU General Public License requirements will
+## be met: https://www.gnu.org/licenses/gpl-3.0.html.
+##
+## $QT_END_LICENSE$
+##
+#############################################################################
+
+import unittest
+
+from PySide2.QtCore import QRandomGenerator, QRandomGenerator64
+
+class QRandomGeneratorTest(unittest.TestCase):
+ '''Test case for QRandomGenerator'''
+
+ def testGenerator(self):
+ self.assertTrue(QRandomGenerator.system())
+ self.assertTrue(QRandomGenerator.global_())
+ generator = QRandomGenerator()
+ r = generator.bounded(10, 20)
+ self.assertTrue(r >= 10)
+ self.assertTrue(r <= 20)
+
+ def testGenerator64(self):
+ generator = QRandomGenerator64()
+ r = generator.generate()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/sources/pyside2/tests/mac/qmacstyle_test.py b/sources/pyside2/tests/mac/qmacstyle_test.py
index 8db9fa279..690758fc7 100644
--- a/sources/pyside2/tests/mac/qmacstyle_test.py
+++ b/sources/pyside2/tests/mac/qmacstyle_test.py
@@ -34,12 +34,14 @@ import unittest
from helper import UsesQApplication
-QMacStyle = type(QStyleFactory.create('Macintosh'))
-
class QMacStyleTest(UsesQApplication):
+ def setUp(self):
+ UsesQApplication.setUp(self)
+ self.QMacStyle = type(QStyleFactory.create('Macintosh'))
+
def testWidgetStyle(self):
w = QLabel('Hello')
- self.assertTrue(isinstance(w.style(), QMacStyle))
+ self.assertTrue(isinstance(w.style(), self.QMacStyle))
if __name__ == '__main__':
unittest.main()
diff --git a/sources/shiboken2/shiboken_version.py b/sources/shiboken2/shiboken_version.py
index 10cbd6956..ed24abfc8 100644
--- a/sources/shiboken2/shiboken_version.py
+++ b/sources/shiboken2/shiboken_version.py
@@ -38,7 +38,7 @@
#############################################################################
major_version = "5"
-minor_version = "9"
+minor_version = "11"
patch_version = "0"
pre_release_version_type = "a" # e.g. "a", "b", "rc".
pre_release_version = "1" # e.g "1", "2", (which means "beta1", "beta2", if type is "b")