diff options
439 files changed, 713 insertions, 713 deletions
diff --git a/PySide2/QtConcurrent/typesystem_concurrent.xml b/PySide2/QtConcurrent/typesystem_concurrent.xml index 83f5aca9..7df4b0f2 100644 --- a/PySide2/QtConcurrent/typesystem_concurrent.xml +++ b/PySide2/QtConcurrent/typesystem_concurrent.xml @@ -18,7 +18,7 @@ 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.QtConcurrent"> +<typesystem package="PySide2.QtConcurrent"> <load-typesystem name="typesystem_core.xml" generate="no"/> <!-- Qt5: this is currently the minimum possible QtConcurrent support, by just extracting diff --git a/PySide2/QtCore/typesystem_core.xml.in b/PySide2/QtCore/typesystem_core.xml.in index 499dcdc8..f0e894bb 100644 --- a/PySide2/QtCore/typesystem_core.xml.in +++ b/PySide2/QtCore/typesystem_core.xml.in @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtCore"> <load-typesystem name="typesystem_core_@AUTO_OS@.xml" generate="yes"/> <load-typesystem name="typesystem_core_common.xml" generate="yes"/> </typesystem> diff --git a/PySide2/QtCore/typesystem_core_common.xml b/PySide2/QtCore/typesystem_core_common.xml index 539e2137..de6004c4 100644 --- a/PySide2/QtCore/typesystem_core_common.xml +++ b/PySide2/QtCore/typesystem_core_common.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtCore"> <load-typesystem name="typesystem_templates.xml" generate="no"/> <custom-type name="str" /> @@ -547,7 +547,7 @@ <primitive-type name="QVariantMap" target-lang-api-name="PyDict"/> <inject-code class="target" position="end"> - Shiboken::Conversions::registerConverterName(SbkPySide_QtCoreTypeConverters[SBK_QTCORE_QMAP_QSTRING_QVARIANT_IDX], "QVariantMap"); + Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QTCORE_QMAP_QSTRING_QVARIANT_IDX], "QVariantMap"); </inject-code> <inject-code class="native" position="beginning"> @@ -1002,9 +1002,9 @@ <!--signal/slot--> <inject-code class="target" position="end"> - Shiboken::Conversions::registerConverterName(SbkPySide_QtCoreTypeConverters[SBK_QSTRING_IDX], "unicode"); - Shiboken::Conversions::registerConverterName(SbkPySide_QtCoreTypeConverters[SBK_QSTRING_IDX], "str"); - Shiboken::Conversions::registerConverterName(SbkPySide_QtCoreTypeConverters[SBK_QTCORE_QLIST_QVARIANT_IDX], "QVariantList"); + Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QSTRING_IDX], "unicode"); + Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QSTRING_IDX], "str"); + Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QTCORE_QLIST_QVARIANT_IDX], "QVariantList"); PySide::init(module); Py_AtExit(QtCoreModuleExit); @@ -4059,7 +4059,7 @@ s1.addTransition(button.clicked, s1h)</code> </modify-function> <!-- FIXME: the proper signature for this added function would be something like - addTransition(PySide.QtCore.Signal, QAbstractState*) + addTransition(PySide2.QtCore.Signal, QAbstractState*) but that depends on bug #362. --> <add-function signature="addTransition(PyObject*, QAbstractState*)" return-type="QSignalTransition*"> <modify-argument index="return"> diff --git a/PySide2/QtCore/typesystem_core_mac.xml b/PySide2/QtCore/typesystem_core_mac.xml index 003363ca..439648b9 100644 --- a/PySide2/QtCore/typesystem_core_mac.xml +++ b/PySide2/QtCore/typesystem_core_mac.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtCore"> <primitive-type name="Qt::HANDLE" target-lang-api-name="PyObject" /> <!-- Qt5: had to move QAbstractEventDispatcher into os-specific files because of Windows --> <object-type name="QAbstractEventDispatcher"> diff --git a/PySide2/QtCore/typesystem_core_win.xml b/PySide2/QtCore/typesystem_core_win.xml index 6b8b2031..c0a439e5 100644 --- a/PySide2/QtCore/typesystem_core_win.xml +++ b/PySide2/QtCore/typesystem_core_win.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtCore"> <extra-includes> <include file-name="windows.h" location="global"/> </extra-includes> diff --git a/PySide2/QtCore/typesystem_core_x11.xml b/PySide2/QtCore/typesystem_core_x11.xml index 8fa3a6d2..0fc72032 100644 --- a/PySide2/QtCore/typesystem_core_x11.xml +++ b/PySide2/QtCore/typesystem_core_x11.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtCore"> <primitive-type name="Qt::HANDLE" target-lang-api-name="PyLong"> <!-- FIXME APIExtractor or shiboken do not support multiple includes by primitive type --> <!-- Qt5: XXX move this to QtGui <include file-name="QTextDocument" location="global"/> --> diff --git a/PySide2/QtDeclarative/pysideqmlregistertype.cpp b/PySide2/QtDeclarative/pysideqmlregistertype.cpp index 5b09d467..28d10c37 100644 --- a/PySide2/QtDeclarative/pysideqmlregistertype.cpp +++ b/PySide2/QtDeclarative/pysideqmlregistertype.cpp @@ -260,8 +260,8 @@ void propListAppender(QDeclarativeListProperty<QDeclarativeItem>* propList, QDec Shiboken::GilState state; Shiboken::AutoDecRef args(PyTuple_New(2)); - PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); - PyTuple_SET_ITEM(args, 1, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide_QtDeclarativeTypes[SBK_QDECLARATIVEITEM_IDX], item)); + PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); + PyTuple_SET_ITEM(args, 1, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide2_QtDeclarativeTypes[SBK_QDECLARATIVEITEM_IDX], item)); DeclarativeListProperty* data = reinterpret_cast<DeclarativeListProperty*>(propList->data); Shiboken::AutoDecRef retVal(PyObject_CallObject(data->append, args)); @@ -276,7 +276,7 @@ int propListCount(QDeclarativeListProperty<QDeclarativeItem>* propList) Shiboken::GilState state; Shiboken::AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); + PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); DeclarativeListProperty* data = reinterpret_cast<DeclarativeListProperty*>(propList->data); Shiboken::AutoDecRef retVal(PyObject_CallObject(data->count, args)); @@ -297,7 +297,7 @@ QDeclarativeItem* propListAt(QDeclarativeListProperty<QDeclarativeItem>* propLis Shiboken::GilState state; Shiboken::AutoDecRef args(PyTuple_New(2)); - PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); + PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); PyTuple_SET_ITEM(args, 1, Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &index)); DeclarativeListProperty* data = reinterpret_cast<DeclarativeListProperty*>(propList->data); @@ -307,7 +307,7 @@ QDeclarativeItem* propListAt(QDeclarativeListProperty<QDeclarativeItem>* propLis if (PyErr_Occurred()) PyErr_Print(); else if (PyType_IsSubtype(Py_TYPE(retVal), data->type)) - Shiboken::Conversions::pythonToCppPointer((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QDECLARATIVEITEM_IDX], retVal, &result); + Shiboken::Conversions::pythonToCppPointer((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QDECLARATIVEITEM_IDX], retVal, &result); return result; } @@ -317,7 +317,7 @@ void propListClear(QDeclarativeListProperty<QDeclarativeItem>* propList) Shiboken::GilState state; Shiboken::AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); + PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object)); DeclarativeListProperty* data = reinterpret_cast<DeclarativeListProperty*>(propList->data); Shiboken::AutoDecRef retVal(PyObject_CallObject(data->clear, args)); @@ -334,7 +334,7 @@ static void propListMetaCall(PySideProperty* pp, PyObject* self, QMetaObject::Ca DeclarativeListProperty* data = reinterpret_cast<DeclarativeListProperty*>(PySide::Property::userData(pp)); QObject* qobj; - Shiboken::Conversions::pythonToCppPointer((SbkObjectType*)SbkPySide_QtCoreTypes[SBK_QOBJECT_IDX], self, &qobj); + Shiboken::Conversions::pythonToCppPointer((SbkObjectType*)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], self, &qobj); QDeclarativeListProperty<QDeclarativeItem> declProp(qobj, data, &propListAppender); if (data->count) diff --git a/PySide2/QtDeclarative/typesystem_declarative.xml b/PySide2/QtDeclarative/typesystem_declarative.xml index 228f7287..d6c5022e 100644 --- a/PySide2/QtDeclarative/typesystem_declarative.xml +++ b/PySide2/QtDeclarative/typesystem_declarative.xml @@ -18,7 +18,7 @@ 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.QtDeclarative"> +<typesystem package="PySide2.QtDeclarative"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_network.xml" generate="no"/> <load-typesystem name="typesystem_widgets.xml" generate="no"/> diff --git a/PySide2/QtGui/typesystem_gui.xml.in b/PySide2/QtGui/typesystem_gui.xml.in index 8c5cfa9a..8e2d23cb 100644 --- a/PySide2/QtGui/typesystem_gui.xml.in +++ b/PySide2/QtGui/typesystem_gui.xml.in @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtGui"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_gui_@AUTO_OS@.xml" generate="yes"/> <load-typesystem name="typesystem_gui_common.xml" generate="yes"/> diff --git a/PySide2/QtGui/typesystem_gui_common.xml b/PySide2/QtGui/typesystem_gui_common.xml index 62aa03cd..e0ddb1f0 100644 --- a/PySide2/QtGui/typesystem_gui_common.xml +++ b/PySide2/QtGui/typesystem_gui_common.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtGui"> <load-typesystem name="typesystem_core.xml" generate="no"/> <template name="QFontCharFix"> @@ -892,7 +892,7 @@ { qreal r, g, b, a; %CPPSELF.getRgbF(&r, &g, &b, &a); - QString repr = QString().sprintf("PySide.QtGui.QColor.fromRgbF(%.6f, %.6f, %.6f, %.6f)", r, g, b, a); + QString repr = QString().sprintf("PySide2.QtGui.QColor.fromRgbF(%.6f, %.6f, %.6f, %.6f)", r, g, b, a); %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr)); break; } @@ -900,7 +900,7 @@ { qreal h, s, v, a; %CPPSELF.getHsvF(&h, &s, &v, &a); - QString repr = QString().sprintf("PySide.QtGui.QColor.fromHsvF(%.6f, %.6f, %.6f, %.6f)", h, s, v, a); + QString repr = QString().sprintf("PySide2.QtGui.QColor.fromHsvF(%.6f, %.6f, %.6f, %.6f)", h, s, v, a); %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr)); break; } @@ -908,7 +908,7 @@ { qreal c, m, y, k, a; %CPPSELF.getCmykF(&c, &m, &y, &k, &a); - QString repr = QString().sprintf("PySide.QtGui.QColor.fromCmykF(%.6f, %.6f, %.6f, %.6f, %.6f)", c, m, y, k, a); + QString repr = QString().sprintf("PySide2.QtGui.QColor.fromCmykF(%.6f, %.6f, %.6f, %.6f, %.6f)", c, m, y, k, a); %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr)); break; } @@ -917,14 +917,14 @@ { qreal h, s, l, a; %CPPSELF.getHslF(&h, &s, &l, &a); - QString repr = QString().sprintf("PySide.QtGui.QColor.fromHslF(%.6f, %.6f, %.6f, %.6f)", h, s, l, a); + QString repr = QString().sprintf("PySide2.QtGui.QColor.fromHslF(%.6f, %.6f, %.6f, %.6f)", h, s, l, a); %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr)); break; } #endif default: { - %PYARG_0 = Shiboken::String::fromCString("PySide.QtGui.QColor()"); + %PYARG_0 = Shiboken::String::fromCString("PySide2.QtGui.QColor()"); } } </template> @@ -1681,7 +1681,7 @@ } else { PyErr_Format(PyExc_TypeError, "Invalid return value in function %s, expected %s, got %s.", "QValidator.validate", - "PySide.QtGui.QValidator.State, (PySide.QtGui.QValidator.State,), (PySide.QtGui.QValidator.State, unicode) or (PySide.QtGui.QValidator.State, unicode, int)", + "PySide2.QtGui.QValidator.State, (PySide2.QtGui.QValidator.State,), (PySide2.QtGui.QValidator.State, unicode) or (PySide2.QtGui.QValidator.State, unicode, int)", pyResult->ob_type->tp_name); return QValidator::State(); } diff --git a/PySide2/QtGui/typesystem_gui_mac.xml b/PySide2/QtGui/typesystem_gui_mac.xml index a3b5e9a2..a3a48f41 100644 --- a/PySide2/QtGui/typesystem_gui_mac.xml +++ b/PySide2/QtGui/typesystem_gui_mac.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtGui"> <rejection class="*" function-name="qt_mac_set_cursor"/> <rejection class="*" function-name="macMenu"/> diff --git a/PySide2/QtGui/typesystem_gui_win.xml b/PySide2/QtGui/typesystem_gui_win.xml index b100b673..0687b75c 100644 --- a/PySide2/QtGui/typesystem_gui_win.xml +++ b/PySide2/QtGui/typesystem_gui_win.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtGui"> <primitive-type name="WId" target-lang-api-name="PyObject"> <conversion-rule> <native-to-target> diff --git a/PySide2/QtGui/typesystem_gui_x11.xml b/PySide2/QtGui/typesystem_gui_x11.xml index 5d70c47e..7cbb8953 100644 --- a/PySide2/QtGui/typesystem_gui_x11.xml +++ b/PySide2/QtGui/typesystem_gui_x11.xml @@ -18,7 +18,7 @@ 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"> +<typesystem package="PySide2.QtGui"> <rejection class="" function-name="qt_x11_getX11InfoForWindow"/> <rejection class="QX11Info" field-name="x11data"/> diff --git a/PySide2/QtHelp/typesystem_help.xml b/PySide2/QtHelp/typesystem_help.xml index bfe506ee..a788bdf8 100644 --- a/PySide2/QtHelp/typesystem_help.xml +++ b/PySide2/QtHelp/typesystem_help.xml @@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --> -<typesystem package="PySide.QtHelp"> +<typesystem package="PySide2.QtHelp"> <load-typesystem name="typesystem_widgets.xml" generate="no" /> <value-type name="QHelpContentItem"> diff --git a/PySide2/QtMultimedia/typesystem_multimedia.xml b/PySide2/QtMultimedia/typesystem_multimedia.xml index 3dd64433..7b173090 100644 --- a/PySide2/QtMultimedia/typesystem_multimedia.xml +++ b/PySide2/QtMultimedia/typesystem_multimedia.xml @@ -18,7 +18,7 @@ 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.QtMultimedia"> +<typesystem package="PySide2.QtMultimedia"> <load-typesystem name="typesystem_core.xml" generate="no" /> <load-typesystem name="typesystem_gui.xml" generate="no" /> <load-typesystem name="typesystem_network.xml" generate="no" /> diff --git a/PySide2/QtNetwork/typesystem_network.xml b/PySide2/QtNetwork/typesystem_network.xml index c88fac9d..ad5db74b 100644 --- a/PySide2/QtNetwork/typesystem_network.xml +++ b/PySide2/QtNetwork/typesystem_network.xml @@ -18,7 +18,7 @@ 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.QtNetwork"> +<typesystem package="PySide2.QtNetwork"> <load-typesystem name="typesystem_core.xml" generate="no"/> <namespace-type name="QSsl"> diff --git a/PySide2/QtOpenGL/typesystem_opengl.xml b/PySide2/QtOpenGL/typesystem_opengl.xml index 1988b535..145c1671 100644 --- a/PySide2/QtOpenGL/typesystem_opengl.xml +++ b/PySide2/QtOpenGL/typesystem_opengl.xml @@ -18,7 +18,7 @@ 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.QtOpenGL"> +<typesystem package="PySide2.QtOpenGL"> <load-typesystem name="typesystem_gui.xml" generate="no" /> <primitive-type name="GLbitfield"/> diff --git a/PySide2/QtPrintSupport/typesystem_printsupport.xml b/PySide2/QtPrintSupport/typesystem_printsupport.xml index 73376eae..fb0d64a4 100644 --- a/PySide2/QtPrintSupport/typesystem_printsupport.xml +++ b/PySide2/QtPrintSupport/typesystem_printsupport.xml @@ -18,7 +18,7 @@ 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.QtPrintSupport"> +<typesystem package="PySide2.QtPrintSupport"> <load-typesystem name="typesystem_widgets.xml" generate="no" /> <object-type name="QPageSetupDialog"> diff --git a/PySide2/QtScript/typesystem_script.xml b/PySide2/QtScript/typesystem_script.xml index 9cce25e9..2fe032c4 100644 --- a/PySide2/QtScript/typesystem_script.xml +++ b/PySide2/QtScript/typesystem_script.xml @@ -18,7 +18,7 @@ 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.QtScript"> +<typesystem package="PySide2.QtScript"> <load-typesystem name="typesystem_core.xml" generate="no" /> <object-type name="QScriptable"/> diff --git a/PySide2/QtScriptTools/typesystem_scripttools.xml b/PySide2/QtScriptTools/typesystem_scripttools.xml index 67b515c6..ea3e3dcd 100644 --- a/PySide2/QtScriptTools/typesystem_scripttools.xml +++ b/PySide2/QtScriptTools/typesystem_scripttools.xml @@ -18,7 +18,7 @@ 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.QtScriptTools"> +<typesystem package="PySide2.QtScriptTools"> <load-typesystem name="typesystem_script.xml" generate="no" /> <load-typesystem name="typesystem_gui.xml" generate="no" /> diff --git a/PySide2/QtSql/typesystem_sql.xml b/PySide2/QtSql/typesystem_sql.xml index 34ae52b2..98db0782 100644 --- a/PySide2/QtSql/typesystem_sql.xml +++ b/PySide2/QtSql/typesystem_sql.xml @@ -18,7 +18,7 @@ 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.QtSql"> +<typesystem package="PySide2.QtSql"> <load-typesystem name="typesystem_widgets.xml" generate="no"/> <rejection class="QSqlDriverCreator"/> diff --git a/PySide2/QtSvg/typesystem_svg.xml b/PySide2/QtSvg/typesystem_svg.xml index 58ab812f..13b9851b 100644 --- a/PySide2/QtSvg/typesystem_svg.xml +++ b/PySide2/QtSvg/typesystem_svg.xml @@ -18,7 +18,7 @@ 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.QtSvg"> +<typesystem package="PySide2.QtSvg"> <load-typesystem name="typesystem_widgets.xml" generate="no"/> <object-type name="QSvgRenderer" /> diff --git a/PySide2/QtTest/typesystem_test.xml b/PySide2/QtTest/typesystem_test.xml index 6e2c5bf1..bda8d82d 100644 --- a/PySide2/QtTest/typesystem_test.xml +++ b/PySide2/QtTest/typesystem_test.xml @@ -18,7 +18,7 @@ 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.QtTest"> +<typesystem package="PySide2.QtTest"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_gui.xml" generate="no"/> <load-typesystem name="typesystem_widgets.xml" generate="no"/> diff --git a/PySide2/QtUiTools/typesystem_uitools.xml b/PySide2/QtUiTools/typesystem_uitools.xml index 16039c9e..5b41878b 100644 --- a/PySide2/QtUiTools/typesystem_uitools.xml +++ b/PySide2/QtUiTools/typesystem_uitools.xml @@ -18,7 +18,7 @@ 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.QtUiTools"> +<typesystem package="PySide2.QtUiTools"> <load-typesystem name="typesystem_widgets.xml" generate="no" /> <load-typesystem name="typesystem_xml.xml" generate="no" /> @@ -45,7 +45,7 @@ <http://www.pyside.org/docs/shiboken/wordsofadvice.html#duck-punching-and-virtual-methods>`_) Let's see an obvious example. If you want to create a new widget it's probable you'll end up - overriding :class:`~PySide.QtGui.QWidget`'s :meth:`~PySide.QtGui.QWidget.paintEvent` method. + overriding :class:`~PySide2.QtGui.QWidget`'s :meth:`~PySide2.QtGui.QWidget.paintEvent` method. .. code-block:: python diff --git a/PySide2/QtWebKit/typesystem_webkit.xml b/PySide2/QtWebKit/typesystem_webkit.xml index 84b82aae..2e7c1b14 100644 --- a/PySide2/QtWebKit/typesystem_webkit.xml +++ b/PySide2/QtWebKit/typesystem_webkit.xml @@ -18,7 +18,7 @@ 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.QtWebKit"> +<typesystem package="PySide2.QtWebKit"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_gui.xml" generate="no"/> <load-typesystem name="typesystem_network.xml" generate="no"/> diff --git a/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml b/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml index e4e4f05b..9b1cf396 100644 --- a/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml +++ b/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml @@ -18,7 +18,7 @@ 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.QtWebKitWidgets"> +<typesystem package="PySide2.QtWebKitWidgets"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_gui.xml" generate="no"/> <load-typesystem name="typesystem_widgets.xml" generate="no"/> diff --git a/PySide2/QtWidgets/typesystem_widgets.xml.in b/PySide2/QtWidgets/typesystem_widgets.xml.in index c7538dbc..b0dd1948 100644 --- a/PySide2/QtWidgets/typesystem_widgets.xml.in +++ b/PySide2/QtWidgets/typesystem_widgets.xml.in @@ -18,7 +18,7 @@ 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.QtWidgets"> +<typesystem package="PySide2.QtWidgets"> <load-typesystem name="typesystem_gui.xml" generate="no"/> <load-typesystem name="typesystem_widgets_@AUTO_OS@.xml" generate="yes"/> <load-typesystem name="typesystem_widgets_common.xml" generate="yes"/> diff --git a/PySide2/QtWidgets/typesystem_widgets_common.xml b/PySide2/QtWidgets/typesystem_widgets_common.xml index 0362a691..0e126337 100644 --- a/PySide2/QtWidgets/typesystem_widgets_common.xml +++ b/PySide2/QtWidgets/typesystem_widgets_common.xml @@ -18,7 +18,7 @@ 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.QtWidgets"> +<typesystem package="PySide2.QtWidgets"> <load-typesystem name="typesystem_gui.xml" generate="no"/> diff --git a/PySide2/QtWidgets/typesystem_widgets_mac.xml b/PySide2/QtWidgets/typesystem_widgets_mac.xml index fbb1220b..a51959e0 100644 --- a/PySide2/QtWidgets/typesystem_widgets_mac.xml +++ b/PySide2/QtWidgets/typesystem_widgets_mac.xml @@ -18,7 +18,7 @@ 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.QtWidgets"> +<typesystem package="PySide2.QtWidgets"> <rejection class="*" function-name="qt_mac_set_cursor"/> <rejection class="*" function-name="macMenu"/> diff --git a/PySide2/QtWidgets/typesystem_widgets_win.xml b/PySide2/QtWidgets/typesystem_widgets_win.xml index 8521789c..88a0b95b 100644 --- a/PySide2/QtWidgets/typesystem_widgets_win.xml +++ b/PySide2/QtWidgets/typesystem_widgets_win.xml @@ -18,7 +18,7 @@ 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.QtWidgets"> +<typesystem package="PySide2.QtWidgets"> <primitive-type name="WId" target-lang-api-name="PyObject"> <conversion-rule> <native-to-target> diff --git a/PySide2/QtWidgets/typesystem_widgets_x11.xml b/PySide2/QtWidgets/typesystem_widgets_x11.xml index ca56332e..94c1a64b 100644 --- a/PySide2/QtWidgets/typesystem_widgets_x11.xml +++ b/PySide2/QtWidgets/typesystem_widgets_x11.xml @@ -18,7 +18,7 @@ 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.QtWidgets"> +<typesystem package="PySide2.QtWidgets"> <rejection class="" function-name="qt_x11_getX11InfoForWindow"/> <rejection class="QX11Info" field-name="x11data"/> diff --git a/PySide2/QtXml/typesystem_xml.xml b/PySide2/QtXml/typesystem_xml.xml index feab9b1f..f84adee9 100644 --- a/PySide2/QtXml/typesystem_xml.xml +++ b/PySide2/QtXml/typesystem_xml.xml @@ -18,7 +18,7 @@ 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.QtXml"> +<typesystem package="PySide2.QtXml"> <load-typesystem name="typesystem_templates.xml" generate="no" /> <load-typesystem name="typesystem_core.xml" generate="no" /> diff --git a/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml b/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml index 34488fab..0b859c3d 100644 --- a/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml +++ b/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml @@ -18,7 +18,7 @@ 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.QtXmlPatterns"> +<typesystem package="PySide2.QtXmlPatterns"> <load-typesystem name="typesystem_core.xml" generate="no"/> <object-type name="QXmlSchema" since="4.6" /> <!-- Qt scoped pointer does not allow declare this as value type --> diff --git a/cmake/Macros/PySideModules.cmake b/cmake/Macros/PySideModules.cmake index b27229c3..c01695cb 100644 --- a/cmake/Macros/PySideModules.cmake +++ b/cmake/Macros/PySideModules.cmake @@ -77,7 +77,7 @@ macro(create_pyside_module # install install(TARGETS ${module_name} LIBRARY DESTINATION ${SITE_PACKAGE}/PySide2) string(TOLOWER ${module_name} lower_module_name) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PySide/${module_name}/pyside_${lower_module_name}_python.h + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PySide2/${module_name}/pyside2_${lower_module_name}_python.h DESTINATION include/PySide2${pyside2_SUFFIX}/${module_name}/) file(GLOB typesystem_files ${CMAKE_CURRENT_SOURCE_DIR}/typesystem_*.xml ${typesystem_path}) install(FILES ${typesystem_files} DESTINATION share/PySide2${pyside2_SUFFIX}/typesystems) @@ -148,7 +148,7 @@ endmacro() macro(HAS_QT_MODULE var name) if (NOT DISABLE_${name} AND ${var}) # we keep the PySide name here because this is compiled into shiboken - set(${name}_GEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/${name}/PySide/${name} + set(${name}_GEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/${name}/PySide2/${name} CACHE INTERNAL "dir with generated source" FORCE) add_subdirectory(${name}) else() diff --git a/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.cpp b/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.cpp index bf76ce16..e5a22354 100644 --- a/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.cpp +++ b/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.cpp @@ -39,7 +39,7 @@ ## ############################################################################ -form PySide.QtGui import * +form PySide2.QtGui import * def __init__(self, parent): diff --git a/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qtimer.cpp b/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qtimer.cpp index bb646a10..3fa7e48f 100644 --- a/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qtimer.cpp +++ b/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qtimer.cpp @@ -1,5 +1,5 @@ //! [0] -from PySide.QtCore import QApplication, QTimer +from PySide2.QtCore import QApplication, QTimer def main(): diff --git a/doc/codesnippets/doc/src/snippets/code/src_opengl_qglcolormap.cpp b/doc/codesnippets/doc/src/snippets/code/src_opengl_qglcolormap.cpp index 80474122..3896cd66 100644 --- a/doc/codesnippets/doc/src/snippets/code/src_opengl_qglcolormap.cpp +++ b/doc/codesnippets/doc/src/snippets/code/src_opengl_qglcolormap.cpp @@ -1,8 +1,8 @@ //! [0] import sys -from PySide.QtGui import QApplication, qRgb -from PySide.QtOpenGL import QGLColormap +from PySide2.QtGui import QApplication, qRgb +from PySide2.QtOpenGL import QGLColormap def main(argv): app = QApplication(argv) diff --git a/doc/codesnippets/doc/src/snippets/droparea.cpp b/doc/codesnippets/doc/src/snippets/droparea.cpp index 46173716..a89e22d9 100644 --- a/doc/codesnippets/doc/src/snippets/droparea.cpp +++ b/doc/codesnippets/doc/src/snippets/droparea.cpp @@ -37,7 +37,7 @@ ## ############################################################################/ -from PySide.QtGui import * +from PySide2.QtGui import * DropArea.DropArea(QWidget *parent) diff --git a/doc/codesnippets/doc/src/snippets/myscrollarea.cpp b/doc/codesnippets/doc/src/snippets/myscrollarea.cpp index d8b1bf3c..61c95427 100644 --- a/doc/codesnippets/doc/src/snippets/myscrollarea.cpp +++ b/doc/codesnippets/doc/src/snippets/myscrollarea.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ -from PySide.QtCore import * -from PySide.QtGui import * +from PySide2.QtCore import * +from PySide2.QtGui import * import sys class MyScrollArea (QAbstractScrollArea): diff --git a/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp b/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp index d433fc29..eef9a194 100644 --- a/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp +++ b/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ -from PySide.QtGui import * -from PySide.QtNetwork import QTcpSocket +from PySide2.QtGui import * +from PySide2.QtNetwork import QTcpSocket def main(): app = QCoreApplication() diff --git a/doc/codesnippets/doc/src/snippets/qdir-listfiles/main.cpp b/doc/codesnippets/doc/src/snippets/qdir-listfiles/main.cpp index 6c8fbcf2..10ba04a2 100644 --- a/doc/codesnippets/doc/src/snippets/qdir-listfiles/main.cpp +++ b/doc/codesnippets/doc/src/snippets/qdir-listfiles/main.cpp @@ -41,7 +41,7 @@ //! [0] -from PySide.QtCore import QDir, QCoreApplication +from PySide2.QtCore import QDir, QCoreApplication import sys app = QCoreApplication(sys.argv) diff --git a/doc/codesnippets/doc/src/snippets/qdir-namefilters/main.cpp b/doc/codesnippets/doc/src/snippets/qdir-namefilters/main.cpp index 163134da..12573199 100644 --- a/doc/codesnippets/doc/src/snippets/qdir-namefilters/main.cpp +++ b/doc/codesnippets/doc/src/snippets/qdir-namefilters/main.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -from PySide.QtCore import * +from PySide2.QtCore import * def main(): dir_ = QDir() diff --git a/doc/codesnippets/doc/src/snippets/qprocess-environment/main.cpp b/doc/codesnippets/doc/src/snippets/qprocess-environment/main.cpp index d26da756..c0af622b 100644 --- a/doc/codesnippets/doc/src/snippets/qprocess-environment/main.cpp +++ b/doc/codesnippets/doc/src/snippets/qprocess-environment/main.cpp @@ -45,7 +45,7 @@ void startProcess() { //! [0] import re -from PySide.QtCore import QProcess +from PySide2.QtCore import QProcess process = QProcess() diff --git a/doc/codesnippets/doc/src/snippets/scribe-overview/main.cpp b/doc/codesnippets/doc/src/snippets/scribe-overview/main.cpp index a5201412..7b53dcdf 100644 --- a/doc/codesnippets/doc/src/snippets/scribe-overview/main.cpp +++ b/doc/codesnippets/doc/src/snippets/scribe-overview/main.cpp @@ -40,7 +40,7 @@ ****************************************************************************/ #include <QtWidgets> -from PySide.QtGui import * +from PySide2.QtGui import * # edit : QTextEdit def mergeFormat(edit): diff --git a/doc/codesnippets/doc/src/snippets/shareddirmodel/main.cpp b/doc/codesnippets/doc/src/snippets/shareddirmodel/main.cpp index bbaf9351..9837f414 100644 --- a/doc/codesnippets/doc/src/snippets/shareddirmodel/main.cpp +++ b/doc/codesnippets/doc/src/snippets/shareddirmodel/main.cpp @@ -46,7 +46,7 @@ selection model. """ -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] //! [1] diff --git a/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.cpp b/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.cpp index 89cece62..6374b287 100644 --- a/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.cpp +++ b/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.cpp @@ -39,8 +39,8 @@ # ###################################### -from PySide.QtGui import * -from PySide.QtSql import * +from PySide2.QtGui import * +from PySide2.QtSql import * def tr(text): diff --git a/doc/codesnippets/doc/src/snippets/timers/timers.cpp b/doc/codesnippets/doc/src/snippets/timers/timers.cpp index 918ba74a..0adfa890 100644 --- a/doc/codesnippets/doc/src/snippets/timers/timers.cpp +++ b/doc/codesnippets/doc/src/snippets/timers/timers.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -from PySide.QtCore import QTimer +from PySide2.QtCore import QTimer class Foo : public QObject { diff --git a/doc/codesnippets/doc/src/snippets/webkit/webpage/main.cpp b/doc/codesnippets/doc/src/snippets/webkit/webpage/main.cpp index 239309e6..19674ff1 100644 --- a/doc/codesnippets/doc/src/snippets/webkit/webpage/main.cpp +++ b/doc/codesnippets/doc/src/snippets/webkit/webpage/main.cpp @@ -1,7 +1,7 @@ -from PySide.QtGui import * -from PySide.QWebKit import QWebPage -from PySide.QWebKit import QWebFrame +from PySide2.QtGui import * +from PySide2.QWebKit import QWebPage +from PySide2.QWebKit import QWebFrame //! [0] diff --git a/doc/codesnippets/examples/dbus/example-client.py b/doc/codesnippets/examples/dbus/example-client.py index 605d4b45..6c38c7b1 100755 --- a/doc/codesnippets/examples/dbus/example-client.py +++ b/doc/codesnippets/examples/dbus/example-client.py @@ -11,7 +11,7 @@ import dbus # import python dbus GLib mainloop support import dbus.mainloop.glib # import QtCore -from PySide.QtCore import * +from PySide2.QtCore import * # signal handler def button_clicked(): diff --git a/doc/codesnippets/examples/dbus/example-server.py b/doc/codesnippets/examples/dbus/example-server.py index 3f51ef50..4eab67cc 100755 --- a/doc/codesnippets/examples/dbus/example-server.py +++ b/doc/codesnippets/examples/dbus/example-server.py @@ -8,8 +8,8 @@ import dbus.service import dbus.mainloop.glib import random -from PySide.QtCore import * -from PySide.QtGui import QPushButton, QApplication +from PySide2.QtCore import * +from PySide2.QtGui import QPushButton, QApplication # The adaptor, MUST inherit dbus.service.Object class DBusWidget(dbus.service.Object): diff --git a/doc/codesnippets/examples/dialogs/extension/finddialog.cpp b/doc/codesnippets/examples/dialogs/extension/finddialog.cpp index 70a9984f..729c3778 100644 --- a/doc/codesnippets/examples/dialogs/extension/finddialog.cpp +++ b/doc/codesnippets/examples/dialogs/extension/finddialog.cpp @@ -40,7 +40,7 @@ ############################################################################ -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] def __init__(self, parent): diff --git a/doc/codesnippets/examples/linguist/hellotr/main.cpp b/doc/codesnippets/examples/linguist/hellotr/main.cpp index 32914ce1..1ac29348 100644 --- a/doc/codesnippets/examples/linguist/hellotr/main.cpp +++ b/doc/codesnippets/examples/linguist/hellotr/main.cpp @@ -42,7 +42,7 @@ #include <QApplication> #include <QPushButton> //! [0] -from PySide.QtCore import QTranslator +from PySide2.QtCore import QTranslator //! [0] //! [1] //! [2] diff --git a/doc/codesnippets/examples/mainwindows/application/mainwindow.cpp b/doc/codesnippets/examples/mainwindows/application/mainwindow.cpp index 73b469b7..67a2886f 100644 --- a/doc/codesnippets/examples/mainwindows/application/mainwindow.cpp +++ b/doc/codesnippets/examples/mainwindows/application/mainwindow.cpp @@ -40,7 +40,7 @@ ###################################### //! [0] -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] //! [1] diff --git a/doc/codesnippets/examples/mainwindows/dockwidgets/mainwindow.cpp b/doc/codesnippets/examples/mainwindows/dockwidgets/mainwindow.cpp index aac0e25f..4d0de73f 100644 --- a/doc/codesnippets/examples/mainwindows/dockwidgets/mainwindow.cpp +++ b/doc/codesnippets/examples/mainwindows/dockwidgets/mainwindow.cpp @@ -40,7 +40,7 @@ ############################################################################ //! [0] -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] //! [1] diff --git a/doc/codesnippets/examples/mainwindows/mainwindow.cpp b/doc/codesnippets/examples/mainwindows/mainwindow.cpp index bf33d9f6..aa892bb2 100644 --- a/doc/codesnippets/examples/mainwindows/mainwindow.cpp +++ b/doc/codesnippets/examples/mainwindows/mainwindow.cpp @@ -39,7 +39,7 @@ # ###################################### -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] def __init__(self): diff --git a/doc/codesnippets/examples/mainwindows/mdi/mainwindow.cpp b/doc/codesnippets/examples/mainwindows/mdi/mainwindow.cpp index 985bcfaa..15015efc 100644 --- a/doc/codesnippets/examples/mainwindows/mdi/mainwindow.cpp +++ b/doc/codesnippets/examples/mainwindows/mdi/mainwindow.cpp @@ -39,7 +39,7 @@ ## ############################################################################ -from PySide.QtGui import * +from PySide2.QtGui import * def __init__(self): diff --git a/doc/codesnippets/examples/mainwindows/menus/mainwindow.cpp b/doc/codesnippets/examples/mainwindows/menus/mainwindow.cpp index bf33d9f6..aa892bb2 100644 --- a/doc/codesnippets/examples/mainwindows/menus/mainwindow.cpp +++ b/doc/codesnippets/examples/mainwindows/menus/mainwindow.cpp @@ -39,7 +39,7 @@ # ###################################### -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] def __init__(self): diff --git a/doc/codesnippets/examples/sql/relationaltablemodel/relationaltablemodel.cpp b/doc/codesnippets/examples/sql/relationaltablemodel/relationaltablemodel.cpp index 170902e6..ea33baf5 100644 --- a/doc/codesnippets/examples/sql/relationaltablemodel/relationaltablemodel.cpp +++ b/doc/codesnippets/examples/sql/relationaltablemodel/relationaltablemodel.cpp @@ -39,8 +39,8 @@ # ###################################### -from PySide.QtGui import * -from PySide.QtSql import * +from PySide2.QtGui import * +from PySide2.QtSql import * def initializeModel(model): //! [0] diff --git a/doc/codesnippets/examples/widgets/spinboxes/window.cpp b/doc/codesnippets/examples/widgets/spinboxes/window.cpp index aa1db717..626fdb12 100644 --- a/doc/codesnippets/examples/widgets/spinboxes/window.cpp +++ b/doc/codesnippets/examples/widgets/spinboxes/window.cpp @@ -39,7 +39,7 @@ # ###################################### -from PySide.QtGui import * +from PySide2.QtGui import * //! [0] def __init__(self): diff --git a/doc/codesnippets/snippets/customstyle/main.cpp b/doc/codesnippets/snippets/customstyle/main.cpp index a1ac4aca..3fac5293 100644 --- a/doc/codesnippets/snippets/customstyle/main.cpp +++ b/doc/codesnippets/snippets/customstyle/main.cpp @@ -1,7 +1,7 @@ //! [using a custom style] import sys -from PySide.QtGui import * +from PySide2.QtGui import * QApplication.setStyle(CustomStyle()) app = QApplication(sys.argv) diff --git a/doc/codesnippets/webkitsnippets/simple/main.cpp b/doc/codesnippets/webkitsnippets/simple/main.cpp index 3a90db9a..d10da4eb 100644 --- a/doc/codesnippets/webkitsnippets/simple/main.cpp +++ b/doc/codesnippets/webkitsnippets/simple/main.cpp @@ -1,7 +1,7 @@ -from PySide.QtCore import * -from PySide.QtGui import * -from PySide.QtWebKit import * +from PySide2.QtCore import * +from PySide2.QtGui import * +from PySide2.QtWebKit import * import sys app = QApplication(sys.argv) diff --git a/doc/extras/PySide.QtCore.ClassInfo.rst b/doc/extras/PySide.QtCore.ClassInfo.rst index 39edf3f6..d2267be9 100644 --- a/doc/extras/PySide.QtCore.ClassInfo.rst +++ b/doc/extras/PySide.QtCore.ClassInfo.rst @@ -1,4 +1,4 @@ -.. module:: PySide.QtCore +.. module:: PySide2.QtCore .. _ClassInfo: ClassInfo diff --git a/doc/extras/PySide.QtCore.Signal.rst b/doc/extras/PySide.QtCore.Signal.rst index b4c4e366..16c64083 100644 --- a/doc/extras/PySide.QtCore.Signal.rst +++ b/doc/extras/PySide.QtCore.Signal.rst @@ -1,4 +1,4 @@ -.. module:: PySide.QtCore +.. module:: PySide2.QtCore .. _Signal: Signal diff --git a/doc/extras/PySide.QtCore.Slot.rst b/doc/extras/PySide.QtCore.Slot.rst index 307c2299..6b93014c 100644 --- a/doc/extras/PySide.QtCore.Slot.rst +++ b/doc/extras/PySide.QtCore.Slot.rst @@ -1,4 +1,4 @@ -.. module:: PySide.QtCore +.. module:: PySide2.QtCore .. _Slot: Slot diff --git a/doc/extras/PySide.QtCore.rst b/doc/extras/PySide.QtCore.rst index f9e05d24..d3277a41 100644 --- a/doc/extras/PySide.QtCore.rst +++ b/doc/extras/PySide.QtCore.rst @@ -2,4 +2,4 @@ All other Qt modules rely on this module. To include the definitions of the modu :: - import PySide.QtCore + import PySide2.QtCore diff --git a/doc/extras/PySide.QtDeclarative.ListProperty.rst b/doc/extras/PySide.QtDeclarative.ListProperty.rst index dcbd57f2..d32621a4 100644 --- a/doc/extras/PySide.QtDeclarative.ListProperty.rst +++ b/doc/extras/PySide.QtDeclarative.ListProperty.rst @@ -1,4 +1,4 @@ -.. module:: PySide.QtDeclarative +.. module:: PySide2.QtDeclarative .. _ListProperty: ListProperty diff --git a/doc/extras/PySide.QtDeclarative.rst b/doc/extras/PySide.QtDeclarative.rst index 4b94adc7..cb4cc42c 100644 --- a/doc/extras/PySide.QtDeclarative.rst +++ b/doc/extras/PySide.QtDeclarative.rst @@ -2,4 +2,4 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtDeclarative + import PySide2.QtDeclarative diff --git a/doc/extras/PySide.QtGui.rst b/doc/extras/PySide.QtGui.rst index f575c2f2..e16329c3 100644 --- a/doc/extras/PySide.QtGui.rst +++ b/doc/extras/PySide.QtGui.rst @@ -2,6 +2,6 @@ To include the definitions of modules classes, use the following directive: :: - import PySide.QtGui + import PySide2.QtGui -.. seealso:: :mod:`PySide.QtCore` +.. seealso:: :mod:`PySide2.QtCore` diff --git a/doc/extras/PySide.QtHelp.rst b/doc/extras/PySide.QtHelp.rst index 8332f57d..6ecfc3d9 100644 --- a/doc/extras/PySide.QtHelp.rst +++ b/doc/extras/PySide.QtHelp.rst @@ -2,7 +2,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtHelp + import PySide2.QtHelp License Information ------------------- diff --git a/doc/extras/PySide.QtMultimedia.rst b/doc/extras/PySide.QtMultimedia.rst index 540a7061..5088db4d 100644 --- a/doc/extras/PySide.QtMultimedia.rst +++ b/doc/extras/PySide.QtMultimedia.rst @@ -2,6 +2,6 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtMultimedia + import PySide2.QtMultimedia diff --git a/doc/extras/PySide.QtNetwork.rst b/doc/extras/PySide.QtNetwork.rst index 44249d30..07303b15 100644 --- a/doc/extras/PySide.QtNetwork.rst +++ b/doc/extras/PySide.QtNetwork.rst @@ -2,4 +2,4 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtNetwork + import PySide2.QtNetwork diff --git a/doc/extras/PySide.QtOpenGL.rst b/doc/extras/PySide.QtOpenGL.rst index 1758ee0a..38783d9f 100644 --- a/doc/extras/PySide.QtOpenGL.rst +++ b/doc/extras/PySide.QtOpenGL.rst @@ -7,7 +7,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtOpenGL + import PySide2.QtOpenGL The Qt OpenGL module is implemented as a platform-independent wrapper around the platform-dependent GLX (version 1.3 or later), WGL, or AGL C APIs. Although the basic functionality provided is very similar to Mark Kilgard's GLUT library, applications using the Qt OpenGL module can take advantage of the whole Qt API for non-OpenGL-specific GUI functionality. diff --git a/doc/extras/PySide.QtScript.rst b/doc/extras/PySide.QtScript.rst index 00488cbe..8ce7681e 100644 --- a/doc/extras/PySide.QtScript.rst +++ b/doc/extras/PySide.QtScript.rst @@ -4,7 +4,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtScript + import PySide2.QtScript License Information ------------------- diff --git a/doc/extras/PySide.QtScriptTools.rst b/doc/extras/PySide.QtScriptTools.rst index c3f69074..a54ed914 100644 --- a/doc/extras/PySide.QtScriptTools.rst +++ b/doc/extras/PySide.QtScriptTools.rst @@ -2,4 +2,4 @@ Applications that use the Qt Script Tools classes need to be configured to be bu :: - import PySide.QtScriptTools + import PySide2.QtScriptTools diff --git a/doc/extras/PySide.QtSql.rst b/doc/extras/PySide.QtSql.rst index 41c1794f..fcdd6ba0 100644 --- a/doc/extras/PySide.QtSql.rst +++ b/doc/extras/PySide.QtSql.rst @@ -2,4 +2,4 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtSql + import PySide2.QtSql diff --git a/doc/extras/PySide.QtSvg.rst b/doc/extras/PySide.QtSvg.rst index b1064523..d7784655 100644 --- a/doc/extras/PySide.QtSvg.rst +++ b/doc/extras/PySide.QtSvg.rst @@ -2,7 +2,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtSvg + import PySide2.QtSvg License Information ------------------- diff --git a/doc/extras/PySide.QtTest.rst b/doc/extras/PySide.QtTest.rst index d5963cb5..0b89a22d 100644 --- a/doc/extras/PySide.QtTest.rst +++ b/doc/extras/PySide.QtTest.rst @@ -2,6 +2,6 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtTest + import PySide2.QtTest .. note:: All macros in the C++ version of QtTest were not binded in PySide, this module is useful only for GUI testing and benchmarking, for ordinary unit testing you should use the ``unittest`` Python module. diff --git a/doc/extras/PySide.QtUiTools.rst b/doc/extras/PySide.QtUiTools.rst index c8558f2d..55322452 100644 --- a/doc/extras/PySide.QtUiTools.rst +++ b/doc/extras/PySide.QtUiTools.rst @@ -1,6 +1,6 @@ These forms are processed at run-time to produce dynamically-generated user interfaces. In order to generate a form at run-time, a resource file containing a UI file is needed. -A form loader object, provided by the QUiLoader class, is used to construct the user interface. This user interface can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form stored in a project's resources. The :meth:`PySide.QtUiTools.QUiLoader.load` function takes the user interface description contained in the file and constructs the form widget. +A form loader object, provided by the QUiLoader class, is used to construct the user interface. This user interface can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form stored in a project's resources. The :meth:`PySide2.QtUiTools.QUiLoader.load` function takes the user interface description contained in the file and constructs the form widget. To include the definitions of the module's classes, use the following directive: diff --git a/doc/extras/PySide.QtWebKit.rst b/doc/extras/PySide.QtWebKit.rst index 7a165be8..58f9230a 100644 --- a/doc/extras/PySide.QtWebKit.rst +++ b/doc/extras/PySide.QtWebKit.rst @@ -15,7 +15,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtWebKit + import PySide2.QtWebKit .. note:: Web site icons, also known as "FavIcons", are currently not supported on Windows. We plan to address this in a future release. diff --git a/doc/extras/PySide.QtXml.rst b/doc/extras/PySide.QtXml.rst index ba69e509..4b48ef21 100644 --- a/doc/extras/PySide.QtXml.rst +++ b/doc/extras/PySide.QtXml.rst @@ -2,4 +2,4 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtXml + import PySide2.QtXml diff --git a/doc/extras/PySide.QtXmlPatterns.rst b/doc/extras/PySide.QtXmlPatterns.rst index 0431aaf7..3830efb4 100644 --- a/doc/extras/PySide.QtXmlPatterns.rst +++ b/doc/extras/PySide.QtXmlPatterns.rst @@ -2,7 +2,7 @@ To include the definitions of the module's classes, use the following directive: :: - import PySide.QtXmlPatterns + import PySide2.QtXmlPatterns Further Reading --------------- diff --git a/doc/pysideapi2.rst b/doc/pysideapi2.rst index 48f87c3a..e86be05c 100644 --- a/doc/pysideapi2.rst +++ b/doc/pysideapi2.rst @@ -20,7 +20,7 @@ your code will run on both bindings. __hash__() function return value ================================ -The hash value returned for the classes :class:`PySide.QtCore.QDate`, :class:`PySide.QtCore.QDateTime`, :class:`PySide.QtCore.QTime`, :class:`PySide.QtCore.QUrl` will be +The hash value returned for the classes :class:`PySide2.QtCore.QDate`, :class:`PySide2.QtCore.QDateTime`, :class:`PySide2.QtCore.QTime`, :class:`PySide2.QtCore.QUrl` will be based on their string representations, thus objects with the same value will produce the same hash. diff --git a/doc/pysideversion.rst b/doc/pysideversion.rst index 23666b8e..3bcebe0d 100644 --- a/doc/pysideversion.rst +++ b/doc/pysideversion.rst @@ -17,15 +17,15 @@ PySide exports their version numbers among the version of Qt used to compile PyS # Prints the Qt version used to compile PySide # e.g. "4.7.2" - print PySide.QtCore.__version__ + print PySide2.QtCore.__version__ # Gets a tuple with each version components of Qt used to compile PySide # e.g. (4, 7, 2) - print PySide.QtCore.__version_info__ + print PySide2.QtCore.__version_info__ Note that the Qt version used to compile PySide may differ from the version used to run PySide, to get the current running Qt version you can do: :: - print PySide.QtCore.qVersion() + print PySide2.QtCore.qVersion() diff --git a/libpyside/pysidesignal.cpp b/libpyside/pysidesignal.cpp index 69f034cb..c188524d 100644 --- a/libpyside/pysidesignal.cpp +++ b/libpyside/pysidesignal.cpp @@ -77,7 +77,7 @@ static PyMethodDef Signal_methods[] = { PyTypeObject PySideSignalMetaType = { PyVarObject_HEAD_INIT(0, 0) - /*tp_name*/ "PySide.QtCore.MetaSignal", + /*tp_name*/ "PySide2.QtCore.MetaSignal", /*tp_basicsize*/ sizeof(PyTypeObject), /*tp_itemsize*/ 0, /*tp_dealloc*/ 0, @@ -111,7 +111,7 @@ PyTypeObject PySideSignalMetaType = { PyTypeObject PySideSignalType = { PyVarObject_HEAD_INIT(&PySideSignalMetaType, 0) - /*tp_name*/ "PySide.QtCore." SIGNAL_CLASS_NAME, + /*tp_name*/ "PySide2.QtCore." SIGNAL_CLASS_NAME, /*tp_basicsize*/ sizeof(PySideSignal), /*tp_itemsize*/ 0, /*tp_dealloc*/ 0, @@ -173,7 +173,7 @@ static PyMappingMethods SignalInstance_as_mapping = { PyTypeObject PySideSignalInstanceType = { PyVarObject_HEAD_INIT(0, 0) - /*tp_name*/ "PySide.QtCore." SIGNAL_INSTANCE_NAME, + /*tp_name*/ "PySide2.QtCore." SIGNAL_INSTANCE_NAME, /*tp_basicsize*/ sizeof(PySideSignalInstance), /*tp_itemsize*/ 0, /*tp_dealloc*/ 0, @@ -944,7 +944,7 @@ bool isQtSignal(const char* signal) bool checkQtSignal(const char* signal) { if (!isQtSignal(signal)) { - PyErr_SetString(PyExc_TypeError, "Use the function PySide.QtCore.SIGNAL on signals"); + PyErr_SetString(PyExc_TypeError, "Use the function PySide2.QtCore.SIGNAL on signals"); return false; } return true; diff --git a/libpyside/pysideslot.cpp b/libpyside/pysideslot.cpp index 223d37ec..e83b90eb 100644 --- a/libpyside/pysideslot.cpp +++ b/libpyside/pysideslot.cpp @@ -47,7 +47,7 @@ static PyObject* slotCall(PyObject*, PyObject*, PyObject*); // Class Definition ----------------------------------------------- static PyTypeObject PySideSlotType = { PyVarObject_HEAD_INIT(0, 0) - "PySide.QtCore." SLOT_DEC_NAME, /*tp_name*/ + "PySide2.QtCore." SLOT_DEC_NAME, /*tp_name*/ sizeof(PySideSlot), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ diff --git a/tests/QtCore/blocking_signals_test.py b/tests/QtCore/blocking_signals_test.py index 96582f6c..d536706e 100644 --- a/tests/QtCore/blocking_signals_test.py +++ b/tests/QtCore/blocking_signals_test.py @@ -5,7 +5,7 @@ import unittest import os from tempfile import mkstemp -from PySide.QtCore import QObject, SIGNAL, QFile +from PySide2.QtCore import QObject, SIGNAL, QFile class TestSignalsBlockedBasic(unittest.TestCase): '''Basic test case for signalsBlocked''' diff --git a/tests/QtCore/bug_1019.py b/tests/QtCore/bug_1019.py index b7f1f68f..c2f8eda6 100644 --- a/tests/QtCore/bug_1019.py +++ b/tests/QtCore/bug_1019.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyTimer (QTimer): def __init__(self): diff --git a/tests/QtCore/bug_1031.py b/tests/QtCore/bug_1031.py index b9745254..c5ea315f 100644 --- a/tests/QtCore/bug_1031.py +++ b/tests/QtCore/bug_1031.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QStateMachine, QState +from PySide2.QtCore import QStateMachine, QState mach = QStateMachine() state = QState(mach) diff --git a/tests/QtCore/bug_408.py b/tests/QtCore/bug_408.py index 5827e56d..1582be3b 100644 --- a/tests/QtCore/bug_408.py +++ b/tests/QtCore/bug_408.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyDevice(QIODevice): def __init__(self, txt): diff --git a/tests/QtCore/bug_428.py b/tests/QtCore/bug_428.py index 9816b3e9..204238a8 100644 --- a/tests/QtCore/bug_428.py +++ b/tests/QtCore/bug_428.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class MyBaseObject(QObject): def __init__(self, number): diff --git a/tests/QtCore/bug_462.py b/tests/QtCore/bug_462.py index 47ab57a6..47b2f012 100644 --- a/tests/QtCore/bug_462.py +++ b/tests/QtCore/bug_462.py @@ -1,7 +1,7 @@ import unittest import sys -from PySide.QtCore import QObject, QCoreApplication, QEvent, QThread +from PySide2.QtCore import QObject, QCoreApplication, QEvent, QThread class MyEvent(QEvent): def __init__(self,i): diff --git a/tests/QtCore/bug_505.py b/tests/QtCore/bug_505.py index 5fbaa4fe..d00af42f 100644 --- a/tests/QtCore/bug_505.py +++ b/tests/QtCore/bug_505.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class MyBaseObject(QObject): def __init__(self, parent=None): diff --git a/tests/QtCore/bug_606.py b/tests/QtCore/bug_606.py index 219b8d99..09c95939 100644 --- a/tests/QtCore/bug_606.py +++ b/tests/QtCore/bug_606.py @@ -1,9 +1,9 @@ import unittest import PySide -from PySide.QtCore import QPoint, QPointF -from PySide.QtCore import QLine, QLineF -from PySide.QtCore import QSize, QSizeF +from PySide2.QtCore import QPoint, QPointF +from PySide2.QtCore import QLine, QLineF +from PySide2.QtCore import QSize, QSizeF class testCases(unittest.TestCase): def testQPointToTuple(self): diff --git a/tests/QtCore/bug_656.py b/tests/QtCore/bug_656.py index ba561744..69b636b9 100644 --- a/tests/QtCore/bug_656.py +++ b/tests/QtCore/bug_656.py @@ -1,4 +1,4 @@ -from PySide.QtCore import * +from PySide2.QtCore import * class CoreApp(QCoreApplication): def __init__(self,*args): diff --git a/tests/QtCore/bug_686.py b/tests/QtCore/bug_686.py index 984e0071..39a62154 100644 --- a/tests/QtCore/bug_686.py +++ b/tests/QtCore/bug_686.py @@ -1,7 +1,7 @@ from __future__ import with_statement import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyWriteThread(QThread): def __init__(self, lock): diff --git a/tests/QtCore/bug_699.py b/tests/QtCore/bug_699.py index e731b5be..c80db18e 100644 --- a/tests/QtCore/bug_699.py +++ b/tests/QtCore/bug_699.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class TestBug699 (unittest.TestCase): diff --git a/tests/QtCore/bug_706.py b/tests/QtCore/bug_706.py index 18250290..ac290d12 100644 --- a/tests/QtCore/bug_706.py +++ b/tests/QtCore/bug_706.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyModel (QAbstractListModel): def rowCount(self, parent = None): diff --git a/tests/QtCore/bug_723.py b/tests/QtCore/bug_723.py index 5bffe561..aae2b640 100644 --- a/tests/QtCore/bug_723.py +++ b/tests/QtCore/bug_723.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyFileEngine (QAbstractFileEngine): diff --git a/tests/QtCore/bug_724.py b/tests/QtCore/bug_724.py index 75b37183..601bd8c2 100644 --- a/tests/QtCore/bug_724.py +++ b/tests/QtCore/bug_724.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QAbstractFileEngine, QIODevice, QFile +from PySide2.QtCore import QAbstractFileEngine, QIODevice, QFile import unittest import tempfile import os diff --git a/tests/QtCore/bug_820.py b/tests/QtCore/bug_820.py index 0e721972..9a0b43b4 100644 --- a/tests/QtCore/bug_820.py +++ b/tests/QtCore/bug_820.py @@ -1,7 +1,7 @@ import functools import unittest -from PySide.QtCore import QObject, Slot, Signal, SIGNAL +from PySide2.QtCore import QObject, Slot, Signal, SIGNAL def log_exception(): def log_exception_decorator(func): diff --git a/tests/QtCore/bug_826.py b/tests/QtCore/bug_826.py index d04b9f34..2bcd55a2 100644 --- a/tests/QtCore/bug_826.py +++ b/tests/QtCore/bug_826.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QEvent, Qt +from PySide2.QtCore import QEvent, Qt import PySide import unittest diff --git a/tests/QtCore/bug_829.py b/tests/QtCore/bug_829.py index 945d8dfb..4730f16e 100644 --- a/tests/QtCore/bug_829.py +++ b/tests/QtCore/bug_829.py @@ -2,7 +2,7 @@ # Thomas Perl <thp.io/about>; 2011-04-16 import unittest -from PySide.QtCore import QSettings +from PySide2.QtCore import QSettings import tempfile class QVariantConversions(unittest.TestCase): diff --git a/tests/QtCore/bug_835.py b/tests/QtCore/bug_835.py index 42f613f5..ab2a9598 100644 --- a/tests/QtCore/bug_835.py +++ b/tests/QtCore/bug_835.py @@ -1,4 +1,4 @@ -from PySide.QtCore import * +from PySide2.QtCore import * import unittest diff --git a/tests/QtCore/bug_920.py b/tests/QtCore/bug_920.py index d7365b98..a42f2f0d 100644 --- a/tests/QtCore/bug_920.py +++ b/tests/QtCore/bug_920.py @@ -2,7 +2,7 @@ import sys import unittest -import PySide.QtCore as QtCore +import PySide2.QtCore as QtCore class Signaller(QtCore.QObject): s1 = QtCore.Signal() diff --git a/tests/QtCore/bug_927.py b/tests/QtCore/bug_927.py index 87fb0161..fab22ec7 100644 --- a/tests/QtCore/bug_927.py +++ b/tests/QtCore/bug_927.py @@ -1,7 +1,7 @@ import time import unittest -from PySide.QtCore import QTime, QRunnable, QThreadPool +from PySide2.QtCore import QTime, QRunnable, QThreadPool class Task(QRunnable): def run(self): diff --git a/tests/QtCore/bug_931.py b/tests/QtCore/bug_931.py index 32a33ac8..cc775441 100644 --- a/tests/QtCore/bug_931.py +++ b/tests/QtCore/bug_931.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject, Signal +from PySide2.QtCore import QObject, Signal o = QObject() class MyObject(QObject): s = Signal(int) diff --git a/tests/QtCore/bug_938.py b/tests/QtCore/bug_938.py index b2ab5657..692ef1dc 100644 --- a/tests/QtCore/bug_938.py +++ b/tests/QtCore/bug_938.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class TestBug938 (unittest.TestCase): diff --git a/tests/QtCore/bug_953.py b/tests/QtCore/bug_953.py index 37ef28ea..13f834c5 100644 --- a/tests/QtCore/bug_953.py +++ b/tests/QtCore/bug_953.py @@ -1,4 +1,4 @@ -from PySide.QtCore import * +from PySide2.QtCore import * class Dispatcher(QObject): _me = None diff --git a/tests/QtCore/bug_987.py b/tests/QtCore/bug_987.py index 9609a457..8c8c411f 100644 --- a/tests/QtCore/bug_987.py +++ b/tests/QtCore/bug_987.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QObject +from PySide2.QtCore import QObject import unittest diff --git a/tests/QtCore/bug_994.py b/tests/QtCore/bug_994.py index 67070d6d..53c73281 100644 --- a/tests/QtCore/bug_994.py +++ b/tests/QtCore/bug_994.py @@ -1,6 +1,6 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QIODevice, QTextStream +from PySide2.QtCore import QIODevice, QTextStream class MyIODevice (QIODevice): diff --git a/tests/QtCore/bug_PYSIDE-164.py b/tests/QtCore/bug_PYSIDE-164.py index 53a1bd6c..8d056790 100644 --- a/tests/QtCore/bug_PYSIDE-164.py +++ b/tests/QtCore/bug_PYSIDE-164.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QCoreApplication, QEventLoop, QObject, Qt, QThread, QTimer, SIGNAL +from PySide2.QtCore import QCoreApplication, QEventLoop, QObject, Qt, QThread, QTimer, SIGNAL import unittest diff --git a/tests/QtCore/bug_PYSIDE-42.py b/tests/QtCore/bug_PYSIDE-42.py index 333001b6..5b3dce20 100644 --- a/tests/QtCore/bug_PYSIDE-42.py +++ b/tests/QtCore/bug_PYSIDE-42.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import unittest class TestBugPYSIDE42 (unittest.TestCase): diff --git a/tests/QtCore/child_event_test.py b/tests/QtCore/child_event_test.py index 1be1ce15..42960f0c 100644 --- a/tests/QtCore/child_event_test.py +++ b/tests/QtCore/child_event_test.py @@ -3,7 +3,7 @@ import unittest from time import sleep -from PySide.QtCore import QObject, QTimer, QCoreApplication +from PySide2.QtCore import QObject, QTimer, QCoreApplication from helper import UsesQCoreApplication diff --git a/tests/QtCore/classinfo_test.py b/tests/QtCore/classinfo_test.py index a343118e..58528be8 100644 --- a/tests/QtCore/classinfo_test.py +++ b/tests/QtCore/classinfo_test.py @@ -1,6 +1,6 @@ import unittest import sys -from PySide.QtCore import QObject, ClassInfo +from PySide2.QtCore import QObject, ClassInfo @ClassInfo(author='pyside',url='http://www.pyside.org') class MyObject(QObject): diff --git a/tests/QtCore/deepcopy_test.py b/tests/QtCore/deepcopy_test.py index d4401774..b22daf44 100644 --- a/tests/QtCore/deepcopy_test.py +++ b/tests/QtCore/deepcopy_test.py @@ -2,9 +2,9 @@ import unittest from copy import deepcopy -from PySide.QtCore import QByteArray, QDate, QDateTime, QTime, QLine, QLineF -from PySide.QtCore import Qt, QSize, QSizeF, QRect, QRectF, QDir, QPoint, QPointF -from PySide.QtCore import QUuid +from PySide2.QtCore import QByteArray, QDate, QDateTime, QTime, QLine, QLineF +from PySide2.QtCore import Qt, QSize, QSizeF, QRect, QRectF, QDir, QPoint, QPointF +from PySide2.QtCore import QUuid class DeepCopyHelper: def testCopy(self): diff --git a/tests/QtCore/deletelater_test.py b/tests/QtCore/deletelater_test.py index 3b2f7d9e..260ee968 100644 --- a/tests/QtCore/deletelater_test.py +++ b/tests/QtCore/deletelater_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import QObject, QTimer, QCoreApplication, SIGNAL +from PySide2.QtCore import QObject, QTimer, QCoreApplication, SIGNAL from helper import UsesQCoreApplication class TestDeleteLater(UsesQCoreApplication): diff --git a/tests/QtCore/destroysignal_test.py b/tests/QtCore/destroysignal_test.py index f6a9fb57..2702326e 100644 --- a/tests/QtCore/destroysignal_test.py +++ b/tests/QtCore/destroysignal_test.py @@ -1,4 +1,4 @@ -from PySide.QtCore import QTimer, QObject +from PySide2.QtCore import QTimer, QObject import sys import unittest diff --git a/tests/QtCore/duck_punching_test.py b/tests/QtCore/duck_punching_test.py index 8e856ab0..5a05d8f1 100644 --- a/tests/QtCore/duck_punching_test.py +++ b/tests/QtCore/duck_punching_test.py @@ -5,7 +5,7 @@ import unittest import types import sys -from PySide.QtCore import QObject +from PySide2.QtCore import QObject from helper import UsesQCoreApplication def MethodType(func, instance, instanceType): diff --git a/tests/QtCore/hash_test.py b/tests/QtCore/hash_test.py index bf02176e..5961308b 100644 --- a/tests/QtCore/hash_test.py +++ b/tests/QtCore/hash_test.py @@ -1,7 +1,7 @@ #!/usr/bin/python import unittest -from PySide.QtCore import QDate, QDateTime, QTime, QUrl -from PySide.QtCore import QLine, QPoint, QRect, QSize +from PySide2.QtCore import QDate, QDateTime, QTime, QUrl +from PySide2.QtCore import QLine, QPoint, QRect, QSize class HashTest(unittest.TestCase): def testInsert(self): diff --git a/tests/QtCore/inherits_test.py b/tests/QtCore/inherits_test.py index da85621e..135c9d74 100644 --- a/tests/QtCore/inherits_test.py +++ b/tests/QtCore/inherits_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class MyObject(QObject): pass diff --git a/tests/QtCore/max_signals.py b/tests/QtCore/max_signals.py index 154eac4f..217ecec2 100644 --- a/tests/QtCore/max_signals.py +++ b/tests/QtCore/max_signals.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL class MyObject(QObject): pass diff --git a/tests/QtCore/mockclass_test.py b/tests/QtCore/mockclass_test.py index 4210efdf..73ad99f7 100644 --- a/tests/QtCore/mockclass_test.py +++ b/tests/QtCore/mockclass_test.py @@ -3,7 +3,7 @@ # Marcus Lindblom <macke@yar.nu>; 2011-02-16 import unittest -from PySide.QtCore import QCoreApplication +from PySide2.QtCore import QCoreApplication class Mock(object): def __init__(self): diff --git a/tests/QtCore/python_conversion.py b/tests/QtCore/python_conversion.py index 84845c0a..002e7d02 100644 --- a/tests/QtCore/python_conversion.py +++ b/tests/QtCore/python_conversion.py @@ -4,7 +4,7 @@ import unittest import datetime -from PySide.QtCore import QTime, QDateTime, QDate +from PySide2.QtCore import QTime, QDateTime, QDate class TestDateTimeConversions (unittest.TestCase): def testQDate(self): diff --git a/tests/QtCore/qabstractfileengine_test.py b/tests/QtCore/qabstractfileengine_test.py index 457c5c53..572167d1 100644 --- a/tests/QtCore/qabstractfileengine_test.py +++ b/tests/QtCore/qabstractfileengine_test.py @@ -3,7 +3,7 @@ import unittest import os -from PySide.QtCore import QAbstractFileEngineIterator, QAbstractFileEngine, QAbstractFileEngineHandler, QDir +from PySide2.QtCore import QAbstractFileEngineIterator, QAbstractFileEngine, QAbstractFileEngineHandler, QDir class TestFSIterator(QAbstractFileEngineIterator): diff --git a/tests/QtCore/qabstractitemmodel_test.py b/tests/QtCore/qabstractitemmodel_test.py index 52e6f8d2..e9f689e4 100644 --- a/tests/QtCore/qabstractitemmodel_test.py +++ b/tests/QtCore/qabstractitemmodel_test.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyModel (QAbstractListModel): pass diff --git a/tests/QtCore/qabstracttransition_test.py b/tests/QtCore/qabstracttransition_test.py index fa1e355c..435f52de 100644 --- a/tests/QtCore/qabstracttransition_test.py +++ b/tests/QtCore/qabstracttransition_test.py @@ -1,7 +1,7 @@ #!/usr/bin/python import unittest from sys import getrefcount -from PySide.QtCore import * +from PySide2.QtCore import * def addStates(transition): sx = QState() diff --git a/tests/QtCore/qanimationgroup_test.py b/tests/QtCore/qanimationgroup_test.py index 58886d11..4ab0c34f 100644 --- a/tests/QtCore/qanimationgroup_test.py +++ b/tests/QtCore/qanimationgroup_test.py @@ -1,6 +1,6 @@ #!/usr/bin/python import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class QAnimationGroupTest(unittest.TestCase): diff --git a/tests/QtCore/qbitarray_test.py b/tests/QtCore/qbitarray_test.py index 0ae6e1d2..b73c36a4 100644 --- a/tests/QtCore/qbitarray_test.py +++ b/tests/QtCore/qbitarray_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QBitArray +from PySide2.QtCore import QBitArray def bool_list_from_qbitarray(qbitarray): '''This function is used instead of a list comprehension because diff --git a/tests/QtCore/qbytearray_buffer_protocol_test.py b/tests/QtCore/qbytearray_buffer_protocol_test.py index 2ae05483..1fe10980 100644 --- a/tests/QtCore/qbytearray_buffer_protocol_test.py +++ b/tests/QtCore/qbytearray_buffer_protocol_test.py @@ -6,7 +6,7 @@ import unittest import py3kcompat as py3k from os.path import isdir -from PySide.QtCore import QByteArray +from PySide2.QtCore import QByteArray class QByteArrayBufferProtocolTest(unittest.TestCase): diff --git a/tests/QtCore/qbytearray_concatenation_operator_test.py b/tests/QtCore/qbytearray_concatenation_operator_test.py index 13fd231f..34d914d0 100644 --- a/tests/QtCore/qbytearray_concatenation_operator_test.py +++ b/tests/QtCore/qbytearray_concatenation_operator_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import QByteArray +from PySide2.QtCore import QByteArray class QByteArrayConcatenationOperatorTest(unittest.TestCase): '''Test cases for QByteArray concatenation with '+' operator''' diff --git a/tests/QtCore/qbytearray_operator_iadd_test.py b/tests/QtCore/qbytearray_operator_iadd_test.py index 55559c45..0304d54c 100644 --- a/tests/QtCore/qbytearray_operator_iadd_test.py +++ b/tests/QtCore/qbytearray_operator_iadd_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QByteArray +from PySide2.QtCore import QByteArray from helper.docmodifier import DocModifier class BaseQByteArrayOperatorIAdd(object): diff --git a/tests/QtCore/qbytearray_operator_test.py b/tests/QtCore/qbytearray_operator_test.py index 9631ab6f..9a8b786e 100644 --- a/tests/QtCore/qbytearray_operator_test.py +++ b/tests/QtCore/qbytearray_operator_test.py @@ -5,7 +5,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QByteArray +from PySide2.QtCore import QByteArray class QByteArrayOperatorEqual(unittest.TestCase): '''TestCase for operator QByteArray == QByteArray''' diff --git a/tests/QtCore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py index 9621a444..c3ac6763 100644 --- a/tests/QtCore/qbytearray_test.py +++ b/tests/QtCore/qbytearray_test.py @@ -6,7 +6,7 @@ import ctypes import pickle import py3kcompat as py3k -from PySide.QtCore import QByteArray, QSettings, QObject +from PySide2.QtCore import QByteArray, QSettings, QObject class QByteArrayTestToNumber(unittest.TestCase): def testToNumberInt(self): @@ -151,7 +151,7 @@ class QByteArrayBug720(unittest.TestCase): def testIt(self): ba = QByteArray(b"32\"1\x00123") self.assertEqual(str(ba), "32\"1\x00123") - self.assertEqual(repr(ba), "PySide.QtCore.QByteArray('32\"1\x00123')") + self.assertEqual(repr(ba), "PySide2.QtCore.QByteArray('32\"1\x00123')") class QByteArrayImplicitConvert(unittest.TestCase): def testString(self): diff --git a/tests/QtCore/qcoreapplication_instance_test.py b/tests/QtCore/qcoreapplication_instance_test.py index 365148d3..1ce65d64 100644 --- a/tests/QtCore/qcoreapplication_instance_test.py +++ b/tests/QtCore/qcoreapplication_instance_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import QCoreApplication +from PySide2.QtCore import QCoreApplication class QCoreApplicationInstanceTest(unittest.TestCase): '''Test cases for QCoreApplication.instance static method''' diff --git a/tests/QtCore/qdatastream_test.py b/tests/QtCore/qdatastream_test.py index aa4c115d..57781c79 100644 --- a/tests/QtCore/qdatastream_test.py +++ b/tests/QtCore/qdatastream_test.py @@ -4,7 +4,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QBitArray, QByteArray, QIODevice, QDataStream, QDate, QTime, QDateTime +from PySide2.QtCore import QBitArray, QByteArray, QIODevice, QDataStream, QDate, QTime, QDateTime def create_bitarray(string): array = QBitArray(len(string)) diff --git a/tests/QtCore/qdate_test.py b/tests/QtCore/qdate_test.py index e1386ab2..759bed59 100644 --- a/tests/QtCore/qdate_test.py +++ b/tests/QtCore/qdate_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class TestQDate (unittest.TestCase): def testGetDate(self): diff --git a/tests/QtCore/qdatetime_test.py b/tests/QtCore/qdatetime_test.py index 589254fe..283318f9 100644 --- a/tests/QtCore/qdatetime_test.py +++ b/tests/QtCore/qdatetime_test.py @@ -1,7 +1,7 @@ import unittest import datetime -from PySide.QtCore import QDateTime, QDate, QTime +from PySide2.QtCore import QDateTime, QDate, QTime class TestQDate (unittest.TestCase): def testDateConversion(self): diff --git a/tests/QtCore/qeasingcurve_test.py b/tests/QtCore/qeasingcurve_test.py index 77c0e6c6..76bbe274 100644 --- a/tests/QtCore/qeasingcurve_test.py +++ b/tests/QtCore/qeasingcurve_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QEasingCurve +from PySide2.QtCore import QEasingCurve def myFunction(progress): if progress == 1.0: diff --git a/tests/QtCore/qenum_test.py b/tests/QtCore/qenum_test.py index d896ae65..f69d264b 100644 --- a/tests/QtCore/qenum_test.py +++ b/tests/QtCore/qenum_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class TestEnum(unittest.TestCase): diff --git a/tests/QtCore/qevent_test.py b/tests/QtCore/qevent_test.py index 07f23f09..34122558 100644 --- a/tests/QtCore/qevent_test.py +++ b/tests/QtCore/qevent_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QEvent +from PySide2.QtCore import QEvent class QEventTypeFlag(unittest.TestCase): '''Test case for usage of QEvent.Type flags''' diff --git a/tests/QtCore/qfile_test.py b/tests/QtCore/qfile_test.py index 0b911cf7..c8cef5e8 100644 --- a/tests/QtCore/qfile_test.py +++ b/tests/QtCore/qfile_test.py @@ -5,7 +5,7 @@ import os import tempfile import py3kcompat as py3k -from PySide.QtCore import QFile, QIODevice +from PySide2.QtCore import QFile, QIODevice class GetCharTest(unittest.TestCase): '''Test case for QIODevice.getChar in QFile''' diff --git a/tests/QtCore/qfileinfo_test.py b/tests/QtCore/qfileinfo_test.py index 580b5a7d..99687553 100644 --- a/tests/QtCore/qfileinfo_test.py +++ b/tests/QtCore/qfileinfo_test.py @@ -4,7 +4,7 @@ import unittest import os import tempfile -from PySide.QtCore import QFile, QFileInfo +from PySide2.QtCore import QFile, QFileInfo class QFileConstructor(unittest.TestCase): '''QFileInfo constructor with qfile''' diff --git a/tests/QtCore/qflags_test.py b/tests/QtCore/qflags_test.py index 9d2f4b1a..fba58245 100644 --- a/tests/QtCore/qflags_test.py +++ b/tests/QtCore/qflags_test.py @@ -2,7 +2,7 @@ '''Test cases for QFlags''' import unittest -from PySide.QtCore import Qt, QTemporaryFile, QFile, QIODevice, QObject +from PySide2.QtCore import Qt, QTemporaryFile, QFile, QIODevice, QObject class QFlagTest(unittest.TestCase): '''Test case for usage of flags''' diff --git a/tests/QtCore/qhandle_test.py b/tests/QtCore/qhandle_test.py index bcf6dea3..5f10ab02 100644 --- a/tests/QtCore/qhandle_test.py +++ b/tests/QtCore/qhandle_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QThread, Qt +from PySide2.QtCore import QThread, Qt class TestHANDLE(unittest.TestCase): def testIntConversion(self): diff --git a/tests/QtCore/qinstallmsghandler_test.py b/tests/QtCore/qinstallmsghandler_test.py index b4aa2d5a..51448cad 100644 --- a/tests/QtCore/qinstallmsghandler_test.py +++ b/tests/QtCore/qinstallmsghandler_test.py @@ -4,7 +4,7 @@ import unittest import sys -from PySide.QtCore import * +from PySide2.QtCore import * param = [] diff --git a/tests/QtCore/qlinef_test.py b/tests/QtCore/qlinef_test.py index 31b5db95..6b6fa286 100644 --- a/tests/QtCore/qlinef_test.py +++ b/tests/QtCore/qlinef_test.py @@ -4,7 +4,7 @@ import unittest import os -from PySide.QtCore import * +from PySide2.QtCore import * class TestQLineF (unittest.TestCase): def testIntersect(self): diff --git a/tests/QtCore/qlocale_test.py b/tests/QtCore/qlocale_test.py index f1bff8e8..c9e42fce 100644 --- a/tests/QtCore/qlocale_test.py +++ b/tests/QtCore/qlocale_test.py @@ -5,7 +5,7 @@ import unittest import ctypes import sys -from PySide.QtCore import QLocale +from PySide2.QtCore import QLocale class QLocaleTestToNumber(unittest.TestCase): def testToNumberInt(self): diff --git a/tests/QtCore/qmetaobject_test.py b/tests/QtCore/qmetaobject_test.py index e0062e32..8773946b 100644 --- a/tests/QtCore/qmetaobject_test.py +++ b/tests/QtCore/qmetaobject_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class Foo(QFile): pass diff --git a/tests/QtCore/qmodelindex_internalpointer_test.py b/tests/QtCore/qmodelindex_internalpointer_test.py index 015d1c92..daa68ee2 100644 --- a/tests/QtCore/qmodelindex_internalpointer_test.py +++ b/tests/QtCore/qmodelindex_internalpointer_test.py @@ -4,7 +4,7 @@ import sys import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class MyModel (QAbstractListModel): pass diff --git a/tests/QtCore/qobject_children_segfault_test.py b/tests/QtCore/qobject_children_segfault_test.py index 930a082c..2e286796 100644 --- a/tests/QtCore/qobject_children_segfault_test.py +++ b/tests/QtCore/qobject_children_segfault_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QObject, QCoreApplication +from PySide2.QtCore import QObject, QCoreApplication class ChildrenCoreApplication(unittest.TestCase): '''Test case for calling QObject.children after creating a QCoreApp''' diff --git a/tests/QtCore/qobject_connect_notify_test.py b/tests/QtCore/qobject_connect_notify_test.py index b87dd4db..34b73032 100644 --- a/tests/QtCore/qobject_connect_notify_test.py +++ b/tests/QtCore/qobject_connect_notify_test.py @@ -3,7 +3,7 @@ ''' Test case for QObject::connectNotify()''' import unittest -from PySide.QtCore import * +from PySide2.QtCore import * from helper import UsesQCoreApplication def cute_slot(): diff --git a/tests/QtCore/qobject_event_filter_test.py b/tests/QtCore/qobject_event_filter_test.py index 8fded798..ea811550 100644 --- a/tests/QtCore/qobject_event_filter_test.py +++ b/tests/QtCore/qobject_event_filter_test.py @@ -5,7 +5,7 @@ import unittest import weakref import sys -from PySide.QtCore import QObject, QTimerEvent +from PySide2.QtCore import QObject, QTimerEvent from helper import UsesQCoreApplication diff --git a/tests/QtCore/qobject_inherits_test.py b/tests/QtCore/qobject_inherits_test.py index a3db11af..7dde81b5 100644 --- a/tests/QtCore/qobject_inherits_test.py +++ b/tests/QtCore/qobject_inherits_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class InheritsCase(unittest.TestCase): '''Test case for QObject.inherits''' diff --git a/tests/QtCore/qobject_objectproperty_test.py b/tests/QtCore/qobject_objectproperty_test.py index 2456b82c..f09bcdac 100644 --- a/tests/QtCore/qobject_objectproperty_test.py +++ b/tests/QtCore/qobject_objectproperty_test.py @@ -5,7 +5,7 @@ http://bugs.openbossa.org/show_bug.cgi?id=378 ''' import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class ExtQObject(QObject): def __init__(self): diff --git a/tests/QtCore/qobject_parent_test.py b/tests/QtCore/qobject_parent_test.py index ea393d89..76be1660 100644 --- a/tests/QtCore/qobject_parent_test.py +++ b/tests/QtCore/qobject_parent_test.py @@ -4,7 +4,7 @@ import unittest from sys import getrefcount -from PySide.QtCore import * +from PySide2.QtCore import * class ParentRefCountCase(unittest.TestCase): '''Test case for the refcount changes of setParent''' diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py index 17589cbe..66de71e3 100644 --- a/tests/QtCore/qobject_property_test.py +++ b/tests/QtCore/qobject_property_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QObject, Property, Signal +from PySide2.QtCore import QObject, Property, Signal class MyObjectWithNotifyProperty(QObject): def __init__(self, parent=None): diff --git a/tests/QtCore/qobject_protected_methods_test.py b/tests/QtCore/qobject_protected_methods_test.py index 37bda37b..e34d59cf 100644 --- a/tests/QtCore/qobject_protected_methods_test.py +++ b/tests/QtCore/qobject_protected_methods_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QObject, QThread, SIGNAL +from PySide2.QtCore import QObject, QThread, SIGNAL class Dummy(QObject): '''Dummy class''' diff --git a/tests/QtCore/qobject_test.py b/tests/QtCore/qobject_test.py index 492fc916..bc76940b 100644 --- a/tests/QtCore/qobject_test.py +++ b/tests/QtCore/qobject_test.py @@ -5,7 +5,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class ObjectNameCase(unittest.TestCase): '''Tests related to QObject object name''' diff --git a/tests/QtCore/qobject_timer_event_test.py b/tests/QtCore/qobject_timer_event_test.py index b46207d8..99c9120e 100644 --- a/tests/QtCore/qobject_timer_event_test.py +++ b/tests/QtCore/qobject_timer_event_test.py @@ -3,7 +3,7 @@ import unittest from time import sleep -from PySide.QtCore import QObject, QCoreApplication +from PySide2.QtCore import QObject, QCoreApplication from helper import UsesQCoreApplication diff --git a/tests/QtCore/qobject_tr_as_instance_test.py b/tests/QtCore/qobject_tr_as_instance_test.py index 5aa70530..d43506f6 100644 --- a/tests/QtCore/qobject_tr_as_instance_test.py +++ b/tests/QtCore/qobject_tr_as_instance_test.py @@ -5,7 +5,7 @@ import os import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject #from helper import UsesQCoreApplication diff --git a/tests/QtCore/qpoint_test.py b/tests/QtCore/qpoint_test.py index dfce7693..b84e1edd 100644 --- a/tests/QtCore/qpoint_test.py +++ b/tests/QtCore/qpoint_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QPoint, QPointF +from PySide2.QtCore import QPoint, QPointF class QPointTest(unittest.TestCase): diff --git a/tests/QtCore/qprocess_test.py b/tests/QtCore/qprocess_test.py index 96a6b793..dab3f58b 100644 --- a/tests/QtCore/qprocess_test.py +++ b/tests/QtCore/qprocess_test.py @@ -5,7 +5,7 @@ import unittest import os import py3kcompat as py3k -from PySide.QtCore import * +from PySide2.QtCore import * class TestQProcess (unittest.TestCase): def testStartDetached(self): diff --git a/tests/QtCore/qproperty_decorator.py b/tests/QtCore/qproperty_decorator.py index 404ce240..f2039907 100644 --- a/tests/QtCore/qproperty_decorator.py +++ b/tests/QtCore/qproperty_decorator.py @@ -1,7 +1,7 @@ import weakref import unittest -from PySide.QtCore import QObject, Property +from PySide2.QtCore import QObject, Property class MyObject(QObject): def __init__(self): diff --git a/tests/QtCore/qrect_test.py b/tests/QtCore/qrect_test.py index a6d38d95..a0336166 100644 --- a/tests/QtCore/qrect_test.py +++ b/tests/QtCore/qrect_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QPoint, QRect, QRectF +from PySide2.QtCore import QPoint, QRect, QRectF class RectConstructor(unittest.TestCase): diff --git a/tests/QtCore/qregexp_test.py b/tests/QtCore/qregexp_test.py index 54991854..a19fc5c2 100644 --- a/tests/QtCore/qregexp_test.py +++ b/tests/QtCore/qregexp_test.py @@ -1,7 +1,7 @@ #!/usr/bin/python import unittest -from PySide.QtCore import QRegExp +from PySide2.QtCore import QRegExp class QRegExpTest(unittest.TestCase): diff --git a/tests/QtCore/qresource_test.py b/tests/QtCore/qresource_test.py index 4abc3ca0..e9566a01 100644 --- a/tests/QtCore/qresource_test.py +++ b/tests/QtCore/qresource_test.py @@ -4,7 +4,7 @@ import unittest from helper import adjust_filename -from PySide.QtCore import QFile, QIODevice +from PySide2.QtCore import QFile, QIODevice import resources_mc class ResourcesUsage(unittest.TestCase): diff --git a/tests/QtCore/qsize_test.py b/tests/QtCore/qsize_test.py index 4fb060b7..bcad2e20 100644 --- a/tests/QtCore/qsize_test.py +++ b/tests/QtCore/qsize_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QSize +from PySide2.QtCore import QSize class QSizeOperator(unittest.TestCase): def testOperatorMultiply(self): diff --git a/tests/QtCore/qsrand_test.py b/tests/QtCore/qsrand_test.py index 97d0a3b0..97a40275 100644 --- a/tests/QtCore/qsrand_test.py +++ b/tests/QtCore/qsrand_test.py @@ -1,7 +1,7 @@ import gc import unittest -from PySide.QtCore import qsrand +from PySide2.QtCore import qsrand class OverflowExceptionCollect(unittest.TestCase): '''Test case for OverflowError exception during garbage collection. See bug #147''' diff --git a/tests/QtCore/qstate_test.py b/tests/QtCore/qstate_test.py index bee73e4c..045d3f22 100644 --- a/tests/QtCore/qstate_test.py +++ b/tests/QtCore/qstate_test.py @@ -1,6 +1,6 @@ #!/usr/bin/python import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class QStateTest(unittest.TestCase): diff --git a/tests/QtCore/qstatemachine_test.py b/tests/QtCore/qstatemachine_test.py index ce2449d1..9d5847c1 100644 --- a/tests/QtCore/qstatemachine_test.py +++ b/tests/QtCore/qstatemachine_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python import unittest -from PySide.QtCore import QObject, QState, QFinalState, SIGNAL -from PySide.QtCore import QTimer, QStateMachine -from PySide.QtCore import QParallelAnimationGroup +from PySide2.QtCore import QObject, QState, QFinalState, SIGNAL +from PySide2.QtCore import QTimer, QStateMachine +from PySide2.QtCore import QParallelAnimationGroup from helper import UsesQCoreApplication @@ -12,9 +12,9 @@ class StateMachineTest(unittest.TestCase): def testBasic(self): '''State machine classes''' - import PySide.QtCore - PySide.QtCore.QSignalTransition - PySide.QtCore.QPropertyAnimation + import PySide2.QtCore + PySide2.QtCore.QSignalTransition + PySide2.QtCore.QPropertyAnimation diff --git a/tests/QtCore/qstring_test.py b/tests/QtCore/qstring_test.py index 5f2eb9a8..fde00fab 100644 --- a/tests/QtCore/qstring_test.py +++ b/tests/QtCore/qstring_test.py @@ -4,7 +4,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class QStringConstructor(unittest.TestCase): '''Test case for QString constructors''' diff --git a/tests/QtCore/qsysinfo_test.py b/tests/QtCore/qsysinfo_test.py index e9486f5b..1e54b9b7 100644 --- a/tests/QtCore/qsysinfo_test.py +++ b/tests/QtCore/qsysinfo_test.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import QSysInfo +from PySide2.QtCore import QSysInfo class TestQSysInfo(unittest.TestCase): def testEnumEndian(self): diff --git a/tests/QtCore/qtext_codec_test.py b/tests/QtCore/qtext_codec_test.py index 2bd7f813..4f28e130 100644 --- a/tests/QtCore/qtext_codec_test.py +++ b/tests/QtCore/qtext_codec_test.py @@ -1,7 +1,7 @@ import gc import unittest -from PySide.QtCore import QTextCodec +from PySide2.QtCore import QTextCodec class TestCodecGetters(unittest.TestCase): diff --git a/tests/QtCore/qtextstream_test.py b/tests/QtCore/qtextstream_test.py index c5c87ed1..976a022a 100644 --- a/tests/QtCore/qtextstream_test.py +++ b/tests/QtCore/qtextstream_test.py @@ -4,7 +4,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QByteArray, QTextStream, QIODevice, QTextCodec, QFile +from PySide2.QtCore import QByteArray, QTextStream, QIODevice, QTextCodec, QFile class QTextStreamShiftTest(unittest.TestCase): diff --git a/tests/QtCore/qthread_prod_cons_test.py b/tests/QtCore/qthread_prod_cons_test.py index fc634dd8..1c93f1d8 100644 --- a/tests/QtCore/qthread_prod_cons_test.py +++ b/tests/QtCore/qthread_prod_cons_test.py @@ -7,7 +7,7 @@ import logging logging.basicConfig(level=logging.WARNING) -from PySide.QtCore import QThread, QCoreApplication, QObject, SIGNAL +from PySide2.QtCore import QThread, QCoreApplication, QObject, SIGNAL class Bucket(QObject): '''Dummy class to hold the produced values''' diff --git a/tests/QtCore/qthread_signal_test.py b/tests/QtCore/qthread_signal_test.py index edd7d77f..bbf4b661 100644 --- a/tests/QtCore/qthread_signal_test.py +++ b/tests/QtCore/qthread_signal_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QThread, QObject, SIGNAL, QCoreApplication +from PySide2.QtCore import QThread, QObject, SIGNAL, QCoreApplication thread_run = False diff --git a/tests/QtCore/qthread_test.py b/tests/QtCore/qthread_test.py index dc99c8e6..957291e0 100644 --- a/tests/QtCore/qthread_test.py +++ b/tests/QtCore/qthread_test.py @@ -2,8 +2,8 @@ '''Test cases for QThread''' import unittest -from PySide.QtCore import QThread, QCoreApplication, QObject, SIGNAL, QMutex, QTimer -from PySide.QtCore import QEventLoop +from PySide2.QtCore import QThread, QCoreApplication, QObject, SIGNAL, QMutex, QTimer +from PySide2.QtCore import QEventLoop from helper import UsesQCoreApplication diff --git a/tests/QtCore/qtimer_singleshot_test.py b/tests/QtCore/qtimer_singleshot_test.py index 09c9ed66..4670b2a9 100644 --- a/tests/QtCore/qtimer_singleshot_test.py +++ b/tests/QtCore/qtimer_singleshot_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import QObject, QTimer, QCoreApplication, Signal +from PySide2.QtCore import QObject, QTimer, QCoreApplication, Signal from helper import UsesQCoreApplication class WatchDog(QObject): diff --git a/tests/QtCore/qtimer_timeout_test.py b/tests/QtCore/qtimer_timeout_test.py index 5b833fdb..62d6d474 100644 --- a/tests/QtCore/qtimer_timeout_test.py +++ b/tests/QtCore/qtimer_timeout_test.py @@ -5,7 +5,7 @@ import unittest import os import sys from tempfile import mkstemp -from PySide.QtCore import QObject, QTimer, SIGNAL +from PySide2.QtCore import QObject, QTimer, SIGNAL from helper import UsesQCoreApplication class WatchDog(QObject): diff --git a/tests/QtCore/qtnamespace_test.py b/tests/QtCore/qtnamespace_test.py index 3343a276..ed92705c 100644 --- a/tests/QtCore/qtnamespace_test.py +++ b/tests/QtCore/qtnamespace_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import Qt +from PySide2.QtCore import Qt class QtNamespace(unittest.TestCase): '''Test case for accessing attributes from Qt namespace''' diff --git a/tests/QtCore/qurl_test.py b/tests/QtCore/qurl_test.py index 14243a11..d7c168af 100644 --- a/tests/QtCore/qurl_test.py +++ b/tests/QtCore/qurl_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QUrl +from PySide2.QtCore import QUrl class QUrlBasicConstructor(unittest.TestCase): '''Tests the basic constructors''' diff --git a/tests/QtCore/repr_test.py b/tests/QtCore/repr_test.py index 5e85b605..4329fae5 100644 --- a/tests/QtCore/repr_test.py +++ b/tests/QtCore/repr_test.py @@ -1,9 +1,9 @@ import PySide import unittest -from PySide.QtCore import QByteArray, QDate, QDateTime, QTime, QLine, QLineF -from PySide.QtCore import Qt, QSize, QSizeF, QRect, QRectF, QPoint, QPointF -from PySide.QtCore import QUuid +from PySide2.QtCore import QByteArray, QDate, QDateTime, QTime, QLine, QLineF +from PySide2.QtCore import Qt, QSize, QSizeF, QRect, QRectF, QPoint, QPointF +from PySide2.QtCore import QUuid class ReprCopyHelper: def testCopy(self): diff --git a/tests/QtCore/setprop_on_ctor_test.py b/tests/QtCore/setprop_on_ctor_test.py index bd4426cd..9fbba4d8 100644 --- a/tests/QtCore/setprop_on_ctor_test.py +++ b/tests/QtCore/setprop_on_ctor_test.py @@ -1,6 +1,6 @@ #!/usr/bin/python import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class SetPropOnCtorTest(unittest.TestCase): diff --git a/tests/QtCore/staticMetaObject_test.py b/tests/QtCore/staticMetaObject_test.py index f80872cc..a4ed34d5 100644 --- a/tests/QtCore/staticMetaObject_test.py +++ b/tests/QtCore/staticMetaObject_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QObject, Slot, QMetaObject +from PySide2.QtCore import QObject, Slot, QMetaObject class MyObject(QObject): @Slot(int, str) diff --git a/tests/QtCore/static_method_test.py b/tests/QtCore/static_method_test.py index 1f9de78f..7d85676d 100644 --- a/tests/QtCore/static_method_test.py +++ b/tests/QtCore/static_method_test.py @@ -4,7 +4,7 @@ import os import unittest -from PySide.QtCore import QFile +from PySide2.QtCore import QFile class StaticNonStaticMethodsTest(unittest.TestCase): '''Test cases for overloads involving static and non-static versions of a method.''' diff --git a/tests/QtCore/static_protected_methods_test.py b/tests/QtCore/static_protected_methods_test.py index 9d920a43..fabc24d0 100644 --- a/tests/QtCore/static_protected_methods_test.py +++ b/tests/QtCore/static_protected_methods_test.py @@ -3,7 +3,7 @@ import unittest, time -from PySide.QtCore import QThread +from PySide2.QtCore import QThread class Test (QThread): def run(self): diff --git a/tests/QtCore/thread_signals_test.py b/tests/QtCore/thread_signals_test.py index 1d2f7506..969527eb 100644 --- a/tests/QtCore/thread_signals_test.py +++ b/tests/QtCore/thread_signals_test.py @@ -5,7 +5,7 @@ import unittest import os from tempfile import mkstemp -from PySide.QtCore import QObject, SIGNAL, QFile, QThread, QTimer, Qt +from PySide2.QtCore import QObject, SIGNAL, QFile, QThread, QTimer, Qt from helper import UsesQCoreApplication class MyThread(QThread): diff --git a/tests/QtCore/tr_noop_test.py b/tests/QtCore/tr_noop_test.py index 92029e00..d2ff6173 100644 --- a/tests/QtCore/tr_noop_test.py +++ b/tests/QtCore/tr_noop_test.py @@ -1,8 +1,8 @@ import unittest import sys -from PySide.QtCore import QT_TR_NOOP, QT_TR_NOOP_UTF8 -from PySide.QtCore import QT_TRANSLATE_NOOP, QT_TRANSLATE_NOOP3, QT_TRANSLATE_NOOP_UTF8 +from PySide2.QtCore import QT_TR_NOOP, QT_TR_NOOP_UTF8 +from PySide2.QtCore import QT_TRANSLATE_NOOP, QT_TRANSLATE_NOOP3, QT_TRANSLATE_NOOP_UTF8 class QtTrNoopTest(unittest.TestCase): diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py index adf830cd..8a201e24 100644 --- a/tests/QtCore/translation_test.py +++ b/tests/QtCore/translation_test.py @@ -6,7 +6,7 @@ import os import unittest import py3kcompat as py3k -from PySide.QtCore import QObject, QTranslator, QCoreApplication +from PySide2.QtCore import QObject, QTranslator, QCoreApplication from helper import UsesQCoreApplication diff --git a/tests/QtCore/unaryoperator_test.py b/tests/QtCore/unaryoperator_test.py index 94db1fee..d234440d 100644 --- a/tests/QtCore/unaryoperator_test.py +++ b/tests/QtCore/unaryoperator_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QPoint +from PySide2.QtCore import QPoint class NegUnaryOperatorTest(unittest.TestCase): '''Tests the presence of unary operator __neg__ on the QPoint class''' diff --git a/tests/QtCore/unicode_test.py b/tests/QtCore/unicode_test.py index ccc49973..ba619a58 100644 --- a/tests/QtCore/unicode_test.py +++ b/tests/QtCore/unicode_test.py @@ -6,7 +6,7 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class UnicodeConversion(unittest.TestCase): '''Test case for QString to/from Python Unicode conversion''' diff --git a/tests/QtDeclarative/bug_1029.py b/tests/QtDeclarative/bug_1029.py index a416ddd6..b0d5d2ea 100644 --- a/tests/QtDeclarative/bug_1029.py +++ b/tests/QtDeclarative/bug_1029.py @@ -1,6 +1,6 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * import sys import gc diff --git a/tests/QtDeclarative/bug_557.py b/tests/QtDeclarative/bug_557.py index b01f3926..75bb570d 100644 --- a/tests/QtDeclarative/bug_557.py +++ b/tests/QtDeclarative/bug_557.py @@ -1,6 +1,6 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * import sys diff --git a/tests/QtDeclarative/bug_814.py b/tests/QtDeclarative/bug_814.py index e2bfc36b..82469348 100644 --- a/tests/QtDeclarative/bug_814.py +++ b/tests/QtDeclarative/bug_814.py @@ -6,8 +6,8 @@ # 2011-04-08 Thomas Perl <m@thp.io> # Released under the same terms as PySide itself -from PySide.QtCore import QUrl, QAbstractListModel, QModelIndex -from PySide.QtDeclarative import QDeclarativeView +from PySide2.QtCore import QUrl, QAbstractListModel, QModelIndex +from PySide2.QtDeclarative import QDeclarativeView from helper import adjust_filename, TimedQApplication import unittest diff --git a/tests/QtDeclarative/bug_825.py b/tests/QtDeclarative/bug_825.py index 2614f7b6..d30ca5b3 100644 --- a/tests/QtDeclarative/bug_825.py +++ b/tests/QtDeclarative/bug_825.py @@ -1,6 +1,6 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * from helper import adjust_filename import unittest diff --git a/tests/QtDeclarative/bug_847.py b/tests/QtDeclarative/bug_847.py index 91619c8a..c106b229 100644 --- a/tests/QtDeclarative/bug_847.py +++ b/tests/QtDeclarative/bug_847.py @@ -6,8 +6,8 @@ import unittest -from PySide.QtCore import Slot, Signal, QUrl -from PySide.QtDeclarative import QDeclarativeView +from PySide2.QtCore import Slot, Signal, QUrl +from PySide2.QtDeclarative import QDeclarativeView from helper import adjust_filename, UsesQApplication diff --git a/tests/QtDeclarative/bug_915.py b/tests/QtDeclarative/bug_915.py index 19366822..3a77a69e 100644 --- a/tests/QtDeclarative/bug_915.py +++ b/tests/QtDeclarative/bug_915.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtDeclarative import QDeclarativeView, QDeclarativeItem +from PySide2.QtDeclarative import QDeclarativeView, QDeclarativeItem from helper import TimedQApplication class TestBug915(TimedQApplication): diff --git a/tests/QtDeclarative/bug_926.py b/tests/QtDeclarative/bug_926.py index bc8d2fc6..813f330b 100644 --- a/tests/QtDeclarative/bug_926.py +++ b/tests/QtDeclarative/bug_926.py @@ -1,9 +1,9 @@ import sys import unittest from helper import adjust_filename -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * class MyClass (QObject): diff --git a/tests/QtDeclarative/bug_951.py b/tests/QtDeclarative/bug_951.py index 0cd89531..881fbac7 100644 --- a/tests/QtDeclarative/bug_951.py +++ b/tests/QtDeclarative/bug_951.py @@ -1,5 +1,5 @@ -from PySide.QtDeclarative import QDeclarativeItem, qmlRegisterType, QDeclarativeView
-from PySide.QtCore import QUrl
+from PySide2.QtDeclarative import QDeclarativeItem, qmlRegisterType, QDeclarativeView
+from PySide2.QtCore import QUrl
from helper import adjust_filename, TimedQApplication
import unittest
diff --git a/tests/QtDeclarative/bug_995.py b/tests/QtDeclarative/bug_995.py index ccfbb143..ab52b104 100644 --- a/tests/QtDeclarative/bug_995.py +++ b/tests/QtDeclarative/bug_995.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * from helper import adjust_filename, UsesQApplication app = QApplication([]) diff --git a/tests/QtDeclarative/qdeclarativenetwork_test.py b/tests/QtDeclarative/qdeclarativenetwork_test.py index 459c422b..26f455a6 100644 --- a/tests/QtDeclarative/qdeclarativenetwork_test.py +++ b/tests/QtDeclarative/qdeclarativenetwork_test.py @@ -2,9 +2,9 @@ import unittest -from PySide.QtCore import QUrl -from PySide.QtDeclarative import QDeclarativeView, QDeclarativeNetworkAccessManagerFactory -from PySide.QtNetwork import QNetworkAccessManager +from PySide2.QtCore import QUrl +from PySide2.QtDeclarative import QDeclarativeView, QDeclarativeNetworkAccessManagerFactory +from PySide2.QtNetwork import QNetworkAccessManager from helper import adjust_filename, TimedQApplication diff --git a/tests/QtDeclarative/qdeclarativeview_test.py b/tests/QtDeclarative/qdeclarativeview_test.py index 468de976..ea729d59 100644 --- a/tests/QtDeclarative/qdeclarativeview_test.py +++ b/tests/QtDeclarative/qdeclarativeview_test.py @@ -2,8 +2,8 @@ import unittest -from PySide.QtCore import QUrl, QObject, Property, Slot -from PySide.QtDeclarative import QDeclarativeView +from PySide2.QtCore import QUrl, QObject, Property, Slot +from PySide2.QtDeclarative import QDeclarativeView from helper import adjust_filename, TimedQApplication diff --git a/tests/QtDeclarative/registertype.py b/tests/QtDeclarative/registertype.py index bea1e77c..ce1c8fbd 100644 --- a/tests/QtDeclarative/registertype.py +++ b/tests/QtDeclarative/registertype.py @@ -2,9 +2,9 @@ import sys import unittest import helper -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtDeclarative import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtDeclarative import * class PieSlice (QDeclarativeItem): diff --git a/tests/QtGui/action_clear.py b/tests/QtGui/action_clear.py index c22a3c13..8507f822 100644 --- a/tests/QtGui/action_clear.py +++ b/tests/QtGui/action_clear.py @@ -1,4 +1,4 @@ -from PySide.QtWidgets import QMenu, QWidget, QMenuBar, QToolBar +from PySide2.QtWidgets import QMenu, QWidget, QMenuBar, QToolBar import weakref import unittest diff --git a/tests/QtGui/add_action_test.py b/tests/QtGui/add_action_test.py index 412a3d20..fe625547 100644 --- a/tests/QtGui/add_action_test.py +++ b/tests/QtGui/add_action_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import SLOT -from PySide.QtWidgets import QMenuBar, QAction, QPushButton +from PySide2.QtCore import SLOT +from PySide2.QtWidgets import QMenuBar, QAction, QPushButton from helper import UsesQApplication diff --git a/tests/QtGui/api2_test.py b/tests/QtGui/api2_test.py index 8d972a97..fdb7b3cf 100644 --- a/tests/QtGui/api2_test.py +++ b/tests/QtGui/api2_test.py @@ -4,8 +4,8 @@ import unittest import sys -from PySide.QtGui import QIntValidator, QValidator -from PySide.QtWidgets import QWidget, QSpinBox, QApplication +from PySide2.QtGui import QIntValidator, QValidator +from PySide2.QtWidgets import QWidget, QSpinBox, QApplication from helper import UsesQApplication diff --git a/tests/QtGui/bug_1002.py b/tests/QtGui/bug_1002.py index 3890bad1..06adf086 100644 --- a/tests/QtGui/bug_1002.py +++ b/tests/QtGui/bug_1002.py @@ -1,6 +1,6 @@ import unittest import sys -from PySide.QtWidgets import QWidget, QPushButton +from PySide2.QtWidgets import QWidget, QPushButton from helper import UsesQApplication diff --git a/tests/QtGui/bug_1006.py b/tests/QtGui/bug_1006.py index b92c13dc..9c71a5ef 100644 --- a/tests/QtGui/bug_1006.py +++ b/tests/QtGui/bug_1006.py @@ -2,8 +2,8 @@ import unittest import weakref import sys -from PySide.QtCore import Qt -from PySide.QtWidgets import QDialog, QLabel, QGridLayout, QHBoxLayout, QWidget +from PySide2.QtCore import Qt +from PySide2.QtWidgets import QDialog, QLabel, QGridLayout, QHBoxLayout, QWidget from helper import TimedQApplication diff --git a/tests/QtGui/bug_172.py b/tests/QtGui/bug_172.py index 8796cbc5..4fbc24cd 100644 --- a/tests/QtGui/bug_172.py +++ b/tests/QtGui/bug_172.py @@ -1,4 +1,4 @@ -from PySide.QtWidgets import * +from PySide2.QtWidgets import * if __name__ == '__main__': app = QApplication([]) diff --git a/tests/QtGui/bug_243.py b/tests/QtGui/bug_243.py index d19c6a0f..fc786697 100644 --- a/tests/QtGui/bug_243.py +++ b/tests/QtGui/bug_243.py @@ -4,7 +4,7 @@ import unittest import sys -from PySide.QtWidgets import QApplication, QMainWindow, QLayout +from PySide2.QtWidgets import QApplication, QMainWindow, QLayout class QAppPresence(unittest.TestCase): diff --git a/tests/QtGui/bug_300_test.py b/tests/QtGui/bug_300_test.py index ec02cdf0..d90e1443 100644 --- a/tests/QtGui/bug_300_test.py +++ b/tests/QtGui/bug_300_test.py @@ -1,5 +1,5 @@ -from PySide.QtGui import QStringListModel -from PySide.QtCore import QModelIndex +from PySide2.QtGui import QStringListModel +from PySide2.QtCore import QModelIndex import unittest class TestQAbstractItemModelSignals(unittest.TestCase): diff --git a/tests/QtGui/bug_307.py b/tests/QtGui/bug_307.py index 4f6cca24..34cbbd74 100644 --- a/tests/QtGui/bug_307.py +++ b/tests/QtGui/bug_307.py @@ -2,8 +2,8 @@ import unittest import colorsys -from PySide.QtCore import SIGNAL -from PySide.QtWidgets import QPushButton, QApplication +from PySide2.QtCore import SIGNAL +from PySide2.QtWidgets import QPushButton, QApplication class Test (QApplication) : diff --git a/tests/QtGui/bug_324.py b/tests/QtGui/bug_324.py index 952ec305..a3ada635 100644 --- a/tests/QtGui/bug_324.py +++ b/tests/QtGui/bug_324.py @@ -3,8 +3,8 @@ import unittest import sys import signal -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class QBug( QObject ): def __init__(self, parent = None): diff --git a/tests/QtGui/bug_400.py b/tests/QtGui/bug_400.py index 6db4e70c..9289ffc4 100644 --- a/tests/QtGui/bug_400.py +++ b/tests/QtGui/bug_400.py @@ -2,7 +2,7 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QTreeWidgetItemIterator, QTreeWidgetItem, QTreeWidget +from PySide2.QtWidgets import QTreeWidgetItemIterator, QTreeWidgetItem, QTreeWidget class BugTest(UsesQApplication): def testCase(self): diff --git a/tests/QtGui/bug_416.py b/tests/QtGui/bug_416.py index d1d1f189..bf298817 100644 --- a/tests/QtGui/bug_416.py +++ b/tests/QtGui/bug_416.py @@ -2,8 +2,8 @@ import unittest from helper import TimedQApplication -from PySide.QtCore import QSignalTransition, QState, Qt, QStateMachine -from PySide.QtWidgets import QCheckBox +from PySide2.QtCore import QSignalTransition, QState, Qt, QStateMachine +from PySide2.QtWidgets import QCheckBox class CheckedTransition(QSignalTransition): def __init__(self, check): diff --git a/tests/QtGui/bug_429.py b/tests/QtGui/bug_429.py index 287bc58d..8a0683a1 100644 --- a/tests/QtGui/bug_429.py +++ b/tests/QtGui/bug_429.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import sys app = QApplication(sys.argv) diff --git a/tests/QtGui/bug_430.py b/tests/QtGui/bug_430.py index d6354a0c..f19f6d35 100644 --- a/tests/QtGui/bug_430.py +++ b/tests/QtGui/bug_430.py @@ -1,6 +1,6 @@ import sys -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class ListModel(QAbstractListModel): def rowCount(self, parent = QModelIndex()): diff --git a/tests/QtGui/bug_467.py b/tests/QtGui/bug_467.py index eaa5105f..e2861b47 100644 --- a/tests/QtGui/bug_467.py +++ b/tests/QtGui/bug_467.py @@ -2,7 +2,7 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QMainWindow, QApplication +from PySide2.QtWidgets import QMainWindow, QApplication class MyWidget(QMainWindow): def __init__(self, parent = None): diff --git a/tests/QtGui/bug_493.py b/tests/QtGui/bug_493.py index 3c4b5d63..cf1b68c6 100644 --- a/tests/QtGui/bug_493.py +++ b/tests/QtGui/bug_493.py @@ -1,6 +1,6 @@ -from PySide.QtCore import Qt, QEvent -from PySide.QtGui import QKeyEvent, QKeySequence -from PySide.QtWidgets import QApplication +from PySide2.QtCore import Qt, QEvent +from PySide2.QtGui import QKeyEvent, QKeySequence +from PySide2.QtWidgets import QApplication import unittest diff --git a/tests/QtGui/bug_500.py b/tests/QtGui/bug_500.py index 2c406086..2058adca 100644 --- a/tests/QtGui/bug_500.py +++ b/tests/QtGui/bug_500.py @@ -2,8 +2,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtPrintSupport import * +from PySide2.QtCore import * +from PySide2.QtPrintSupport import * from helper import UsesQApplication class NeverDiesTest(UsesQApplication): diff --git a/tests/QtGui/bug_512.py b/tests/QtGui/bug_512.py index 3430fd9f..031337a5 100644 --- a/tests/QtGui/bug_512.py +++ b/tests/QtGui/bug_512.py @@ -2,8 +2,8 @@ import unittest from helper import UsesQApplication -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class BugTest(UsesQApplication): def testCase(self): diff --git a/tests/QtGui/bug_525.py b/tests/QtGui/bug_525.py index 6410a5b6..936ec45d 100644 --- a/tests/QtGui/bug_525.py +++ b/tests/QtGui/bug_525.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import QApplication -from PySide.QtWidgets import QMenu +from PySide2.QtWidgets import QApplication +from PySide2.QtWidgets import QMenu class M2(QMenu): def __init__(self,parent=None): diff --git a/tests/QtGui/bug_546.py b/tests/QtGui/bug_546.py index 90aeece2..1473ede3 100644 --- a/tests/QtGui/bug_546.py +++ b/tests/QtGui/bug_546.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class TestBug546(unittest.TestCase): diff --git a/tests/QtGui/bug_549.py b/tests/QtGui/bug_549.py index a4e0eb4f..c0c1ff83 100644 --- a/tests/QtGui/bug_549.py +++ b/tests/QtGui/bug_549.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class TestBug549(unittest.TestCase): def testBug(self): diff --git a/tests/QtGui/bug_569.py b/tests/QtGui/bug_569.py index 482b7948..66889053 100644 --- a/tests/QtGui/bug_569.py +++ b/tests/QtGui/bug_569.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import unittest diff --git a/tests/QtGui/bug_575.py b/tests/QtGui/bug_575.py index ca867806..4ac5bc62 100644 --- a/tests/QtGui/bug_575.py +++ b/tests/QtGui/bug_575.py @@ -1,7 +1,7 @@ """ Unittest for bug #575 """ """ http://bugs.openbossa.org/show_bug.cgi?id=575 """ -from PySide.QtWidgets import QApplication, QPlainTextEdit, QTextEdit +from PySide2.QtWidgets import QApplication, QPlainTextEdit, QTextEdit import sys import unittest diff --git a/tests/QtGui/bug_606.py b/tests/QtGui/bug_606.py index 0fe1bde6..06bd7969 100644 --- a/tests/QtGui/bug_606.py +++ b/tests/QtGui/bug_606.py @@ -1,8 +1,8 @@ import unittest import PySide -from PySide.QtGui import QVector2D, QVector3D, QVector4D -from PySide.QtGui import QColor +from PySide2.QtGui import QVector2D, QVector3D, QVector4D +from PySide2.QtGui import QColor class testCases(unittest.TestCase): def testQVector2DToTuple(self): diff --git a/tests/QtGui/bug_617.py b/tests/QtGui/bug_617.py index fc8952f5..8aa0c38f 100644 --- a/tests/QtGui/bug_617.py +++ b/tests/QtGui/bug_617.py @@ -1,5 +1,5 @@ -from PySide.QtCore import QEvent -from PySide.QtGui import QColor +from PySide2.QtCore import QEvent +from PySide2.QtGui import QColor import unittest class MyEvent(QEvent): @@ -15,7 +15,7 @@ class Bug617(unittest.TestCase): def testOutOfBounds(self): e = MyEvent() - self.assertEqual(repr(e.type()), 'PySide.QtCore.QEvent.Type(999)') + self.assertEqual(repr(e.type()), 'PySide2.QtCore.QEvent.Type(999)') if __name__ == "__main__": unittest.main() diff --git a/tests/QtGui/bug_632.py b/tests/QtGui/bug_632.py index c27d44dc..c97ec881 100644 --- a/tests/QtGui/bug_632.py +++ b/tests/QtGui/bug_632.py @@ -1,5 +1,5 @@ import sys -from PySide.QtWidgets import QLineEdit, QApplication +from PySide2.QtWidgets import QLineEdit, QApplication import unittest diff --git a/tests/QtGui/bug_635.py b/tests/QtGui/bug_635.py index c0a64846..9d07fbe8 100644 --- a/tests/QtGui/bug_635.py +++ b/tests/QtGui/bug_635.py @@ -1,8 +1,8 @@ ''' Test bug 635: http://bugs.openbossa.org/show_bug.cgi?id=635''' import unittest -from PySide.QtGui import QIcon -from PySide.QtWidgets import QApplication, QToolBar +from PySide2.QtGui import QIcon +from PySide2.QtWidgets import QApplication, QToolBar import sys class testQToolBar(unittest.TestCase): diff --git a/tests/QtGui/bug_640.py b/tests/QtGui/bug_640.py index b049db23..23941050 100644 --- a/tests/QtGui/bug_640.py +++ b/tests/QtGui/bug_640.py @@ -1,5 +1,5 @@ import sys -from PySide.QtWidgets import * +from PySide2.QtWidgets import * import unittest class Bug640(unittest.TestCase): diff --git a/tests/QtGui/bug_652.py b/tests/QtGui/bug_652.py index 438fdbde..14e6f62a 100644 --- a/tests/QtGui/bug_652.py +++ b/tests/QtGui/bug_652.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtGui import * +from PySide2.QtGui import * class MyData(QTextBlockUserData): def __init__(self, data): diff --git a/tests/QtGui/bug_653.py b/tests/QtGui/bug_653.py index 67892ce7..5cf8a040 100644 --- a/tests/QtGui/bug_653.py +++ b/tests/QtGui/bug_653.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class TestBug653(unittest.TestCase): """Crash after calling QWizardPage.wizard()""" diff --git a/tests/QtGui/bug_660.py b/tests/QtGui/bug_660.py index b97217f3..345e23e4 100644 --- a/tests/QtGui/bug_660.py +++ b/tests/QtGui/bug_660.py @@ -1,6 +1,6 @@ import unittest import py3kcompat as py3k -from PySide.QtGui import QStandardItemModel, QStandardItem +from PySide2.QtGui import QStandardItemModel, QStandardItem class MyItemModel(QStandardItemModel): def __init__(self,parent=None): diff --git a/tests/QtGui/bug_662.py b/tests/QtGui/bug_662.py index 2a5307dd..4b1b99bb 100644 --- a/tests/QtGui/bug_662.py +++ b/tests/QtGui/bug_662.py @@ -1,8 +1,8 @@ ''' Test bug 662: http://bugs.openbossa.org/show_bug.cgi?id=662''' import unittest -from PySide.QtGui import QTextCharFormat -from PySide.QtWidgets import QTextEdit, QApplication +from PySide2.QtGui import QTextCharFormat +from PySide2.QtWidgets import QTextEdit, QApplication import sys class testQTextBlock(unittest.TestCase): diff --git a/tests/QtGui/bug_667.py b/tests/QtGui/bug_667.py index 40c8d64a..a6ae492d 100644 --- a/tests/QtGui/bug_667.py +++ b/tests/QtGui/bug_667.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtGui import * +from PySide2.QtCore import * +from PySide2.QtGui import * class Ball(QGraphicsEllipseItem): def __init__(self, d, parent=None): diff --git a/tests/QtGui/bug_668.py b/tests/QtGui/bug_668.py index c37dccee..46ee8212 100644 --- a/tests/QtGui/bug_668.py +++ b/tests/QtGui/bug_668.py @@ -1,6 +1,6 @@ # coding: utf-8 -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import sys diff --git a/tests/QtGui/bug_674.py b/tests/QtGui/bug_674.py index 5e93da5c..f913236a 100644 --- a/tests/QtGui/bug_674.py +++ b/tests/QtGui/bug_674.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import unittest import sys diff --git a/tests/QtGui/bug_675.py b/tests/QtGui/bug_675.py index 4efb3b9b..a6d0a9ca 100644 --- a/tests/QtGui/bug_675.py +++ b/tests/QtGui/bug_675.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * app = QApplication([]) diff --git a/tests/QtGui/bug_688.py b/tests/QtGui/bug_688.py index d3b2b403..4782f361 100644 --- a/tests/QtGui/bug_688.py +++ b/tests/QtGui/bug_688.py @@ -2,8 +2,8 @@ import unittest from helper import UsesQApplication -from PySide.QtGui import QTextFrame, QTextCursor, QTextCharFormat, QFont, QTextFrameFormat -from PySide.QtWidgets import QTextEdit +from PySide2.QtGui import QTextFrame, QTextCursor, QTextCharFormat, QFont, QTextFrameFormat +from PySide2.QtWidgets import QTextEdit class BugTest(UsesQApplication): def testCase(self): diff --git a/tests/QtGui/bug_693.py b/tests/QtGui/bug_693.py index 719738b2..0fcd5421 100644 --- a/tests/QtGui/bug_693.py +++ b/tests/QtGui/bug_693.py @@ -1,6 +1,6 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * import unittest class MyModel (QAbstractListModel): @@ -22,7 +22,7 @@ class TestBug693(unittest.TestCase): view.show() # This must NOT throw the exception: - # RuntimeError: Internal C++ object (PySide.QtCore.QLine) already deleted. + # RuntimeError: Internal C++ object (PySide2.QtCore.QLine) already deleted. MyModel.stupidLine.isNull() diff --git a/tests/QtGui/bug_696.py b/tests/QtGui/bug_696.py index 6f98b41c..1f0d7aeb 100644 --- a/tests/QtGui/bug_696.py +++ b/tests/QtGui/bug_696.py @@ -28,7 +28,7 @@ import sys import unittest from helper import UsesQApplication -from PySide.QtWidgets import QMainWindow, QMenu, QApplication +from PySide2.QtWidgets import QMainWindow, QMenu, QApplication class MainWindow(QMainWindow): def __init__(self, *args): diff --git a/tests/QtGui/bug_711.py b/tests/QtGui/bug_711.py index d2155918..0ce4987c 100644 --- a/tests/QtGui/bug_711.py +++ b/tests/QtGui/bug_711.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import QToolBar, QApplication, QAction, QToolButton +from PySide2.QtWidgets import QToolBar, QApplication, QAction, QToolButton try: xrange diff --git a/tests/QtGui/bug_714.py b/tests/QtGui/bug_714.py index 3ff6ba6c..a3f9c712 100644 --- a/tests/QtGui/bug_714.py +++ b/tests/QtGui/bug_714.py @@ -1,7 +1,7 @@ import unittest import sys -from PySide.QtGui import QPixmap -from PySide.QtWidgets import QLabel, QApplication +from PySide2.QtGui import QPixmap +from PySide2.QtWidgets import QLabel, QApplication class TestLabelPixmap(unittest.TestCase): def testReference(self): diff --git a/tests/QtGui/bug_716.py b/tests/QtGui/bug_716.py index fe5315e5..f5266c7e 100644 --- a/tests/QtGui/bug_716.py +++ b/tests/QtGui/bug_716.py @@ -1,5 +1,5 @@ -from PySide.QtCore import Qt, QPersistentModelIndex -from PySide.QtGui import QStringListModel +from PySide2.QtCore import Qt, QPersistentModelIndex +from PySide2.QtGui import QStringListModel if __name__ == '__main__': stringListModel = QStringListModel(['one', 'two']) diff --git a/tests/QtGui/bug_722.py b/tests/QtGui/bug_722.py index 63ca6d57..c67ca725 100644 --- a/tests/QtGui/bug_722.py +++ b/tests/QtGui/bug_722.py @@ -2,7 +2,7 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QDoubleSpinBox, QGraphicsBlurEffect +from PySide2.QtWidgets import QDoubleSpinBox, QGraphicsBlurEffect class TestSignalConnection(UsesQApplication): def testFloatSignal(self): diff --git a/tests/QtGui/bug_728.py b/tests/QtGui/bug_728.py index fa5b1f05..89c8f666 100644 --- a/tests/QtGui/bug_728.py +++ b/tests/QtGui/bug_728.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import * -from PySide.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtCore import * app = QApplication([]) QTimer.singleShot(200, app.quit) diff --git a/tests/QtGui/bug_736.py b/tests/QtGui/bug_736.py index 04b465b9..a0248252 100644 --- a/tests/QtGui/bug_736.py +++ b/tests/QtGui/bug_736.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class TestBug736 (unittest.TestCase): diff --git a/tests/QtGui/bug_740.py b/tests/QtGui/bug_740.py index 302a1a13..d29a62eb 100644 --- a/tests/QtGui/bug_740.py +++ b/tests/QtGui/bug_740.py @@ -1,8 +1,8 @@ import unittest import py3kcompat as py3k from helper import UsesQApplication -from PySide.QtCore import QSize -from PySide.QtGui import QBitmap, QImage +from PySide2.QtCore import QSize +from PySide2.QtGui import QBitmap, QImage class TestQBitmap(UsesQApplication): def testFromDataMethod(self): diff --git a/tests/QtGui/bug_743.py b/tests/QtGui/bug_743.py index 0957fccc..abab1395 100644 --- a/tests/QtGui/bug_743.py +++ b/tests/QtGui/bug_743.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtGui import QMatrix4x4 +from PySide2.QtGui import QMatrix4x4 class TestQMatrix(unittest.TestCase): def testOperator(self): diff --git a/tests/QtGui/bug_750.py b/tests/QtGui/bug_750.py index c929ed70..adf184b7 100644 --- a/tests/QtGui/bug_750.py +++ b/tests/QtGui/bug_750.py @@ -2,9 +2,9 @@ import unittest from helper import UsesQApplication -from PySide.QtCore import QTimer -from PySide.QtGui import QPainter, QFont, QFontInfo -from PySide.QtWidgets import QWidget, qApp +from PySide2.QtCore import QTimer +from PySide2.QtGui import QPainter, QFont, QFontInfo +from PySide2.QtWidgets import QWidget, qApp class MyWidget(QWidget): def paintEvent(self, e): diff --git a/tests/QtGui/bug_778.py b/tests/QtGui/bug_778.py index 49ce161a..4395ecf6 100644 --- a/tests/QtGui/bug_778.py +++ b/tests/QtGui/bug_778.py @@ -2,7 +2,7 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QTreeWidget, QTreeWidgetItem, QTreeWidgetItemIterator +from PySide2.QtWidgets import QTreeWidget, QTreeWidgetItem, QTreeWidgetItemIterator class QTreeWidgetItemIteratorTest(UsesQApplication): def testWidgetIterator(self): diff --git a/tests/QtGui/bug_785.py b/tests/QtGui/bug_785.py index 99c07bc5..f42f4e2f 100644 --- a/tests/QtGui/bug_785.py +++ b/tests/QtGui/bug_785.py @@ -1,8 +1,8 @@ import sys
import unittest
-from PySide.QtGui import QStandardItemModel, QStandardItem, QItemSelection
-from PySide.QtWidgets import QApplication
+from PySide2.QtGui import QStandardItemModel, QStandardItem, QItemSelection
+from PySide2.QtWidgets import QApplication
class Bug324(unittest.TestCase):
def testOperators(self):
model = QStandardItemModel()
diff --git a/tests/QtGui/bug_793.py b/tests/QtGui/bug_793.py index 5e97b5eb..476722b3 100644 --- a/tests/QtGui/bug_793.py +++ b/tests/QtGui/bug_793.py @@ -1,7 +1,7 @@ import unittest import sys -from PySide.QtCore import QTimer -from PySide.QtWidgets import QWidget, QApplication +from PySide2.QtCore import QTimer +from PySide2.QtWidgets import QWidget, QApplication class TestW1(QWidget): def __init__(self, parent = None): diff --git a/tests/QtGui/bug_811.py b/tests/QtGui/bug_811.py index 272fecb6..a11de9b2 100644 --- a/tests/QtGui/bug_811.py +++ b/tests/QtGui/bug_811.py @@ -4,8 +4,8 @@ import weakref from helper import UsesQApplication -from PySide.QtGui import QTextBlockUserData, QTextCursor -from PySide.QtWidgets import QTextEdit +from PySide2.QtGui import QTextBlockUserData, QTextCursor +from PySide2.QtWidgets import QTextEdit class TestUserData(QTextBlockUserData): def __init__(self, data): diff --git a/tests/QtGui/bug_836.py b/tests/QtGui/bug_836.py index 1ed83254..efb409b1 100644 --- a/tests/QtGui/bug_836.py +++ b/tests/QtGui/bug_836.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class Mixin1(object): pass diff --git a/tests/QtGui/bug_844.py b/tests/QtGui/bug_844.py index a1cffc39..db05d7e0 100644 --- a/tests/QtGui/bug_844.py +++ b/tests/QtGui/bug_844.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import * -from PySide.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtCore import * class QtKeyPressListener(QObject): def __init__(self, obj): diff --git a/tests/QtGui/bug_854.py b/tests/QtGui/bug_854.py index e9554768..6612f019 100644 --- a/tests/QtGui/bug_854.py +++ b/tests/QtGui/bug_854.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import QTableView, QVBoxLayout, QApplication -from PySide.QtCore import QAbstractItemModel +from PySide2.QtWidgets import QTableView, QVBoxLayout, QApplication +from PySide2.QtCore import QAbstractItemModel from helper import UsesQApplication import unittest diff --git a/tests/QtGui/bug_860.py b/tests/QtGui/bug_860.py index 5ab8ee97..f2b479f8 100644 --- a/tests/QtGui/bug_860.py +++ b/tests/QtGui/bug_860.py @@ -2,8 +2,8 @@ import sys import unittest -from PySide.QtCore import QSignalMapper -from PySide.QtWidgets import QCheckBox +from PySide2.QtCore import QSignalMapper +from PySide2.QtWidgets import QCheckBox from helper import UsesQApplication diff --git a/tests/QtGui/bug_862.py b/tests/QtGui/bug_862.py index 4e690920..b4085846 100644 --- a/tests/QtGui/bug_862.py +++ b/tests/QtGui/bug_862.py @@ -1,7 +1,7 @@ -from PySide.QtCore import QObject -from PySide.QtWidgets import * -import PySide.QtCore +from PySide2.QtCore import QObject +from PySide2.QtWidgets import * +import PySide2.QtCore import unittest class MyQObject(QObject): @@ -31,10 +31,10 @@ class TestRepr (unittest.TestCase): self.assertEqual("<__main__.MyQGraphicsObject(this = 0x", repr(MyQGraphicsObject())[:37]) self.assertEqual("<__main__.MyQGraphicsItem(this = 0x", repr(MyQGraphicsItem())[:35]) - self.assertEqual("<PySide.QtCore.QObject object at ", repr(QObject())[:33]) - self.assertEqual("<PySide.QtCore.QObject object at ", repr(PySide.QtCore.QObject())[:33]) - self.assertEqual("<PySide.QtGui.QWidget object at ", repr(QWidget())[:32]) - self.assertEqual("<PySide.QtGui.QGraphicsWidget(this = 0x", repr(QGraphicsWidget())[:39]) + self.assertEqual("<PySide2.QtCore.QObject object at ", repr(QObject())[:33]) + self.assertEqual("<PySide2.QtCore.QObject object at ", repr(PySide2.QtCore.QObject())[:33]) + self.assertEqual("<PySide2.QtGui.QWidget object at ", repr(QWidget())[:32]) + self.assertEqual("<PySide2.QtGui.QGraphicsWidget(this = 0x", repr(QGraphicsWidget())[:39]) if __name__ == "__main__": unittest.main() diff --git a/tests/QtGui/bug_871.py b/tests/QtGui/bug_871.py index affe5d9d..b7c17787 100644 --- a/tests/QtGui/bug_871.py +++ b/tests/QtGui/bug_871.py @@ -1,7 +1,7 @@ import unittest from helper import UsesQApplication -from PySide.QtGui import QValidator, QIntValidator -from PySide.QtWidgets import QLineEdit +from PySide2.QtGui import QValidator, QIntValidator +from PySide2.QtWidgets import QLineEdit '''Bug #871 - http://bugs.pyside.org/show_bug.cgi?id=871''' diff --git a/tests/QtGui/bug_879.py b/tests/QtGui/bug_879.py index 026a8248..31fc8cf0 100644 --- a/tests/QtGui/bug_879.py +++ b/tests/QtGui/bug_879.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class MySpinBox(QSpinBox): diff --git a/tests/QtGui/bug_882.py b/tests/QtGui/bug_882.py index 2183204d..7784095f 100644 --- a/tests/QtGui/bug_882.py +++ b/tests/QtGui/bug_882.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import * -from PySide.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtCore import * import os if "DISPLAY" in os.environ: diff --git a/tests/QtGui/bug_919.py b/tests/QtGui/bug_919.py index a3061dfc..df5bd1ec 100644 --- a/tests/QtGui/bug_919.py +++ b/tests/QtGui/bug_919.py @@ -1,8 +1,8 @@ import unittest from helper import TimedQApplication -from PySide.QtGui import QPainter -from PySide.QtWidgets import QPushButton, QStyleOptionButton, QApplication, QStyle +from PySide2.QtGui import QPainter +from PySide2.QtWidgets import QPushButton, QStyleOptionButton, QApplication, QStyle class MyWidget(QPushButton): def __init__(self, parent = None): diff --git a/tests/QtGui/bug_921.py b/tests/QtGui/bug_921.py index b43f5b3d..0f736ff6 100644 --- a/tests/QtGui/bug_921.py +++ b/tests/QtGui/bug_921.py @@ -2,8 +2,8 @@ import unittest -import PySide.QtCore as QtCore -import PySide.QtGui as QtGui +import PySide2.QtCore as QtCore +import PySide2.QtGui as QtGui from helper import TimedQApplication diff --git a/tests/QtGui/bug_941.py b/tests/QtGui/bug_941.py index 23dacd58..692302dd 100644 --- a/tests/QtGui/bug_941.py +++ b/tests/QtGui/bug_941.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * def foo(a, b): pass diff --git a/tests/QtGui/bug_964.py b/tests/QtGui/bug_964.py index 36f980dd..492a4be6 100644 --- a/tests/QtGui/bug_964.py +++ b/tests/QtGui/bug_964.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtGui import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtGui import * +from PySide2.QtWidgets import * class TestBug964 (unittest.TestCase): diff --git a/tests/QtGui/bug_967.py b/tests/QtGui/bug_967.py index d24eb914..55ea97fa 100644 --- a/tests/QtGui/bug_967.py +++ b/tests/QtGui/bug_967.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class TestBug967 (unittest.TestCase): diff --git a/tests/QtGui/bug_972.py b/tests/QtGui/bug_972.py index f3e68d25..6e1a710e 100644 --- a/tests/QtGui/bug_972.py +++ b/tests/QtGui/bug_972.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QSizeF -from PySide.QtWidgets import QGraphicsProxyWidget, QSizePolicy, QPushButton, QGraphicsScene, QGraphicsView +from PySide2.QtCore import QSizeF +from PySide2.QtWidgets import QGraphicsProxyWidget, QSizePolicy, QPushButton, QGraphicsScene, QGraphicsView from helper import TimedQApplication diff --git a/tests/QtGui/bug_979.py b/tests/QtGui/bug_979.py index b2eb7ed9..b58fcac5 100644 --- a/tests/QtGui/bug_979.py +++ b/tests/QtGui/bug_979.py @@ -1,4 +1,4 @@ -from PySide.QtWidgets import QDialog +from PySide2.QtWidgets import QDialog from import_test import PysideImportTest2 class PysideImportTest1(QDialog, PysideImportTest2): diff --git a/tests/QtGui/bug_988.py b/tests/QtGui/bug_988.py index 7d886af2..abb965fe 100644 --- a/tests/QtGui/bug_988.py +++ b/tests/QtGui/bug_988.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class TestBug988 (unittest.TestCase): diff --git a/tests/QtGui/bug_991.py b/tests/QtGui/bug_991.py index 55ff81d5..8feeac33 100644 --- a/tests/QtGui/bug_991.py +++ b/tests/QtGui/bug_991.py @@ -1,15 +1,15 @@ import unittest -from PySide.QtCore import QObject -from PySide.QtGui import QPen, QBrush +from PySide2.QtCore import QObject +from PySide2.QtGui import QPen, QBrush class TestBug991 (unittest.TestCase): def testReprFunction(self): reprPen = repr(QPen()) - self.assertTrue(reprPen.startswith("<PySide.QtGui.QPen")) + self.assertTrue(reprPen.startswith("<PySide2.QtGui.QPen")) reprBrush = repr(QBrush()) - self.assertTrue(reprBrush.startswith("<PySide.QtGui.QBrush")) + self.assertTrue(reprBrush.startswith("<PySide2.QtGui.QBrush")) reprObject = repr(QObject()) - self.assertTrue(reprObject.startswith("<PySide.QtCore.QObject")) + self.assertTrue(reprObject.startswith("<PySide2.QtCore.QObject")) if __name__ == '__main__': unittest.main() diff --git a/tests/QtGui/bug_998.py b/tests/QtGui/bug_998.py index b592cc92..90c9240c 100644 --- a/tests/QtGui/bug_998.py +++ b/tests/QtGui/bug_998.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import QApplication +from PySide2.QtWidgets import QApplication class TestBug998 (unittest.TestCase): def testNoFocusWindow(self): diff --git a/tests/QtGui/bug_PYSIDE-41.py b/tests/QtGui/bug_PYSIDE-41.py index 0ca7d908..c4b5c391 100644 --- a/tests/QtGui/bug_PYSIDE-41.py +++ b/tests/QtGui/bug_PYSIDE-41.py @@ -4,8 +4,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtGui import * +from PySide2.QtCore import * +from PySide2.QtGui import * class TestBugPYSIDE41(unittest.TestCase): diff --git a/tests/QtGui/customproxywidget_test.py b/tests/QtGui/customproxywidget_test.py index 41838e35..76e81065 100644 --- a/tests/QtGui/customproxywidget_test.py +++ b/tests/QtGui/customproxywidget_test.py @@ -1,10 +1,10 @@ import unittest from helper import UsesQApplication -from PySide.QtCore import Qt, QTimer -from PySide.QtGui import QPainter -from PySide.QtWidgets import QLabel -from PySide.QtWidgets import QGraphicsScene, QGraphicsView, QGraphicsItem, QGraphicsProxyWidget +from PySide2.QtCore import Qt, QTimer +from PySide2.QtGui import QPainter +from PySide2.QtWidgets import QLabel +from PySide2.QtWidgets import QGraphicsScene, QGraphicsView, QGraphicsItem, QGraphicsProxyWidget class CustomProxy(QGraphicsProxyWidget): def __init__(self, parent=None, wFlags=0): diff --git a/tests/QtGui/deepcopy_test.py b/tests/QtGui/deepcopy_test.py index 1f53d45f..0ee4ebed 100644 --- a/tests/QtGui/deepcopy_test.py +++ b/tests/QtGui/deepcopy_test.py @@ -2,14 +2,14 @@ import unittest from copy import deepcopy -from PySide.QtCore import QPoint -from PySide.QtGui import QMatrix -from PySide.QtGui import QMatrix2x2, QMatrix2x3, QMatrix2x4 -from PySide.QtGui import QMatrix3x2, QMatrix3x3, QMatrix3x4 -from PySide.QtGui import QMatrix4x2, QMatrix4x3, QMatrix4x4 -from PySide.QtGui import QVector2D, QVector3D, QVector4D -from PySide.QtGui import QColor, QTransform, QKeySequence, QQuaternion -from PySide.QtGui import QPolygon +from PySide2.QtCore import QPoint +from PySide2.QtGui import QMatrix +from PySide2.QtGui import QMatrix2x2, QMatrix2x3, QMatrix2x4 +from PySide2.QtGui import QMatrix3x2, QMatrix3x3, QMatrix3x4 +from PySide2.QtGui import QMatrix4x2, QMatrix4x3, QMatrix4x4 +from PySide2.QtGui import QVector2D, QVector3D, QVector4D +from PySide2.QtGui import QColor, QTransform, QKeySequence, QQuaternion +from PySide2.QtGui import QPolygon class DeepCopyHelper: def testCopy(self): diff --git a/tests/QtGui/event_filter_test.py b/tests/QtGui/event_filter_test.py index 23626eb5..0c890017 100644 --- a/tests/QtGui/event_filter_test.py +++ b/tests/QtGui/event_filter_test.py @@ -2,8 +2,8 @@ import unittest import sys from helper import UsesQApplication -from PySide.QtCore import QObject, QEvent -from PySide.QtWidgets import QWidget +from PySide2.QtCore import QObject, QEvent +from PySide2.QtWidgets import QWidget class MyFilter(QObject): def eventFilter(self, obj, event): diff --git a/tests/QtGui/float_to_int_implicit_conversion_test.py b/tests/QtGui/float_to_int_implicit_conversion_test.py index cc7d18fd..f77a69ce 100644 --- a/tests/QtGui/float_to_int_implicit_conversion_test.py +++ b/tests/QtGui/float_to_int_implicit_conversion_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtGui import QImage, qRgb +from PySide2.QtGui import QImage, qRgb from helper import UsesQApplication diff --git a/tests/QtGui/grandparent_method_test.py b/tests/QtGui/grandparent_method_test.py index 37e55235..dfa6d70e 100644 --- a/tests/QtGui/grandparent_method_test.py +++ b/tests/QtGui/grandparent_method_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtWidgets import QPushButton, QWidget +from PySide2.QtWidgets import QPushButton, QWidget from helper import UsesQApplication diff --git a/tests/QtGui/hashabletype_test.py b/tests/QtGui/hashabletype_test.py index 87aeea0c..3afb6788 100644 --- a/tests/QtGui/hashabletype_test.py +++ b/tests/QtGui/hashabletype_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtWidgets import QTreeWidgetItem +from PySide2.QtWidgets import QTreeWidgetItem from helper import UsesQApplication class HashableTest(UsesQApplication): diff --git a/tests/QtGui/keep_reference_test.py b/tests/QtGui/keep_reference_test.py index e6d8fd2c..aca6979f 100644 --- a/tests/QtGui/keep_reference_test.py +++ b/tests/QtGui/keep_reference_test.py @@ -4,8 +4,8 @@ import unittest from sys import getrefcount from helper import UsesQApplication -from PySide.QtCore import * -from PySide.QtWidgets import QTableView +from PySide2.QtCore import * +from PySide2.QtWidgets import QTableView class TestModel(QAbstractTableModel): def __init__(self, parent=None): diff --git a/tests/QtGui/paint_event_test.py b/tests/QtGui/paint_event_test.py index b0e318fa..af1160c5 100644 --- a/tests/QtGui/paint_event_test.py +++ b/tests/QtGui/paint_event_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import QTimerEvent -from PySide.QtWidgets import QApplication, QWidget +from PySide2.QtCore import QTimerEvent +from PySide2.QtWidgets import QApplication, QWidget from helper import UsesQApplication diff --git a/tests/QtGui/parent_method_test.py b/tests/QtGui/parent_method_test.py index 24cc7ba6..3fe0123b 100644 --- a/tests/QtGui/parent_method_test.py +++ b/tests/QtGui/parent_method_test.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtCore import QObject, QTimer, QThread -from PySide.QtWidgets import * +from PySide2.QtCore import QObject, QTimer, QThread +from PySide2.QtWidgets import * class Foo(QTableView): def __init__(self, parent=None): diff --git a/tests/QtGui/qabstracttextdocumentlayout_test.py b/tests/QtGui/qabstracttextdocumentlayout_test.py index 24f6b17b..c8a710ac 100644 --- a/tests/QtGui/qabstracttextdocumentlayout_test.py +++ b/tests/QtGui/qabstracttextdocumentlayout_test.py @@ -1,9 +1,9 @@ import unittest import py3kcompat as py3k -from PySide.QtCore import QSizeF, QTimer -from PySide.QtGui import QTextFormat, QTextCharFormat, QPyTextObject -from PySide.QtWidgets import QTextEdit +from PySide2.QtCore import QSizeF, QTimer +from PySide2.QtGui import QTextFormat, QTextCharFormat, QPyTextObject +from PySide2.QtWidgets import QTextEdit from helper import UsesQApplication class Foo(QPyTextObject): diff --git a/tests/QtGui/qaction_test.py b/tests/QtGui/qaction_test.py index 10880011..74b86e58 100644 --- a/tests/QtGui/qaction_test.py +++ b/tests/QtGui/qaction_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import QAction, QWidget +from PySide2.QtWidgets import QAction, QWidget from helper import UsesQApplication class QPainterDrawText(UsesQApplication): diff --git a/tests/QtGui/qapp_test.py b/tests/QtGui/qapp_test.py index f9b4c8a2..6fa146c7 100644 --- a/tests/QtGui/qapp_test.py +++ b/tests/QtGui/qapp_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class QAppPresence(unittest.TestCase): diff --git a/tests/QtGui/qapplication_exit_segfault_test.py b/tests/QtGui/qapplication_exit_segfault_test.py index 6a9ab6a3..e652e7f1 100644 --- a/tests/QtGui/qapplication_exit_segfault_test.py +++ b/tests/QtGui/qapplication_exit_segfault_test.py @@ -2,7 +2,7 @@ import unittest import sys -from PySide.QtWidgets import QApplication, QPushButton, QWidget, QSpinBox +from PySide2.QtWidgets import QApplication, QPushButton, QWidget, QSpinBox class QApplicationDelete(unittest.TestCase): '''Test for segfault when deleting a QApplication before a QWidget''' diff --git a/tests/QtGui/qapplication_singleton_test.py b/tests/QtGui/qapplication_singleton_test.py index e9f517c3..ece8a653 100644 --- a/tests/QtGui/qapplication_singleton_test.py +++ b/tests/QtGui/qapplication_singleton_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtWidgets import QApplication +from PySide2.QtWidgets import QApplication class TestSingleton(unittest.TestCase): def testBasic(self): diff --git a/tests/QtGui/qbrush_test.py b/tests/QtGui/qbrush_test.py index 2cf8579f..84e8e82a 100644 --- a/tests/QtGui/qbrush_test.py +++ b/tests/QtGui/qbrush_test.py @@ -3,9 +3,9 @@ import unittest -from PySide.QtCore import Qt -from PySide.QtGui import QColor, QBrush -from PySide.QtWidgets import QApplication +from PySide2.QtCore import Qt +from PySide2.QtGui import QColor, QBrush +from PySide2.QtWidgets import QApplication from helper import UsesQApplication diff --git a/tests/QtGui/qcolor_reduce_test.py b/tests/QtGui/qcolor_reduce_test.py index c846ae35..c1d18a20 100644 --- a/tests/QtGui/qcolor_reduce_test.py +++ b/tests/QtGui/qcolor_reduce_test.py @@ -1,6 +1,6 @@ import unittest import pickle -from PySide.QtGui import QColor +from PySide2.QtGui import QColor class TestQColor (unittest.TestCase): def reduceColor(self, c): diff --git a/tests/QtGui/qcolor_test.py b/tests/QtGui/qcolor_test.py index 26f3f4cf..9ea23a06 100644 --- a/tests/QtGui/qcolor_test.py +++ b/tests/QtGui/qcolor_test.py @@ -3,8 +3,8 @@ import unittest import colorsys import PySide -from PySide.QtCore import Qt -from PySide.QtGui import QColor +from PySide2.QtCore import Qt +from PySide2.QtGui import QColor class QColorGetTest(unittest.TestCase): diff --git a/tests/QtGui/qcursor_test.py b/tests/QtGui/qcursor_test.py index ec758d4f..3cc054de 100644 --- a/tests/QtGui/qcursor_test.py +++ b/tests/QtGui/qcursor_test.py @@ -3,7 +3,7 @@ http://bugs.openbossa.org/show_bug.cgi?id=630 ''' import unittest -from PySide.QtGui import QBitmap, QCursor, QPixmap +from PySide2.QtGui import QBitmap, QCursor, QPixmap from helper import UsesQApplication class TestQCursor(UsesQApplication): diff --git a/tests/QtGui/qdatastream_gui_operators_test.py b/tests/QtGui/qdatastream_gui_operators_test.py index dbb638fd..7335a331 100644 --- a/tests/QtGui/qdatastream_gui_operators_test.py +++ b/tests/QtGui/qdatastream_gui_operators_test.py @@ -3,8 +3,8 @@ import unittest import sys -from PySide.QtCore import QDataStream, QByteArray, QIODevice, Qt -from PySide.QtGui import QPixmap, QColor +from PySide2.QtCore import QDataStream, QByteArray, QIODevice, Qt +from PySide2.QtGui import QPixmap, QColor from helper import UsesQApplication diff --git a/tests/QtGui/qdynamic_signal.py b/tests/QtGui/qdynamic_signal.py index 2ff5fa2f..0f1b5ee2 100644 --- a/tests/QtGui/qdynamic_signal.py +++ b/tests/QtGui/qdynamic_signal.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtCore import QObject -from PySide.QtWidgets import QInputDialog +from PySide2.QtCore import QObject +from PySide2.QtWidgets import QInputDialog from helper import UsesQApplication diff --git a/tests/QtGui/qfontmetrics_test.py b/tests/QtGui/qfontmetrics_test.py index 59f01f9e..e6d1e769 100644 --- a/tests/QtGui/qfontmetrics_test.py +++ b/tests/QtGui/qfontmetrics_test.py @@ -3,8 +3,8 @@ and QFontMetricsF''' import unittest -from PySide.QtGui import QFont, QFontMetrics, QFontMetricsF -from PySide.QtCore import QRect, QRectF, Qt, QSize, QSizeF +from PySide2.QtGui import QFont, QFontMetrics, QFontMetricsF +from PySide2.QtCore import QRect, QRectF, Qt, QSize, QSizeF from helper import UsesQApplication diff --git a/tests/QtGui/qformlayout_test.py b/tests/QtGui/qformlayout_test.py index 0bd70388..4667df5a 100644 --- a/tests/QtGui/qformlayout_test.py +++ b/tests/QtGui/qformlayout_test.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import QFormLayout, QWidget +from PySide2.QtWidgets import QFormLayout, QWidget from helper import UsesQApplication diff --git a/tests/QtGui/qgraphicsitem_test.py b/tests/QtGui/qgraphicsitem_test.py index bcbed27a..d68cb3b9 100644 --- a/tests/QtGui/qgraphicsitem_test.py +++ b/tests/QtGui/qgraphicsitem_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtGui import QPolygonF, QColor, QBrush -from PySide.QtWidgets import QGraphicsScene +from PySide2.QtGui import QPolygonF, QColor, QBrush +from PySide2.QtWidgets import QGraphicsScene from helper import UsesQApplication diff --git a/tests/QtGui/qgraphicsproxywidget_test.py b/tests/QtGui/qgraphicsproxywidget_test.py index e8bbb432..46dfe96c 100644 --- a/tests/QtGui/qgraphicsproxywidget_test.py +++ b/tests/QtGui/qgraphicsproxywidget_test.py @@ -1,10 +1,10 @@ import unittest from helper import UsesQApplication -from PySide.QtCore import Qt, QTimer -from PySide.QtGui import QPainter -from PySide.QtWidgets import QLabel -from PySide.QtWidgets import QGraphicsScene, QGraphicsView, QGraphicsItem, QGraphicsProxyWidget +from PySide2.QtCore import Qt, QTimer +from PySide2.QtGui import QPainter +from PySide2.QtWidgets import QLabel +from PySide2.QtWidgets import QGraphicsScene, QGraphicsView, QGraphicsItem, QGraphicsProxyWidget class QGraphicsProxyWidgetTest(UsesQApplication): def testQGraphicsProxyWidget(self): diff --git a/tests/QtGui/qgraphicsscene_test.py b/tests/QtGui/qgraphicsscene_test.py index b20ee7d4..a9987834 100644 --- a/tests/QtGui/qgraphicsscene_test.py +++ b/tests/QtGui/qgraphicsscene_test.py @@ -4,15 +4,15 @@ import unittest import gc -from PySide.QtCore import QPointF -from PySide.QtGui import QPolygonF, QPixmap, QPainterPath -from PySide.QtWidgets import QApplication, QPushButton -from PySide.QtWidgets import QGraphicsScene -from PySide.QtWidgets import QGraphicsEllipseItem, QGraphicsLineItem -from PySide.QtWidgets import QGraphicsPathItem, QGraphicsPixmapItem -from PySide.QtWidgets import QGraphicsPolygonItem, QGraphicsRectItem -from PySide.QtWidgets import QGraphicsSimpleTextItem, QGraphicsTextItem -from PySide.QtWidgets import QGraphicsProxyWidget +from PySide2.QtCore import QPointF +from PySide2.QtGui import QPolygonF, QPixmap, QPainterPath +from PySide2.QtWidgets import QApplication, QPushButton +from PySide2.QtWidgets import QGraphicsScene +from PySide2.QtWidgets import QGraphicsEllipseItem, QGraphicsLineItem +from PySide2.QtWidgets import QGraphicsPathItem, QGraphicsPixmapItem +from PySide2.QtWidgets import QGraphicsPolygonItem, QGraphicsRectItem +from PySide2.QtWidgets import QGraphicsSimpleTextItem, QGraphicsTextItem +from PySide2.QtWidgets import QGraphicsProxyWidget from helper import UsesQApplication diff --git a/tests/QtGui/qicon_test.py b/tests/QtGui/qicon_test.py index 738e72c5..f3bc98fd 100644 --- a/tests/QtGui/qicon_test.py +++ b/tests/QtGui/qicon_test.py @@ -2,7 +2,7 @@ import unittest from helper import TimedQApplication -from PySide.QtGui import QIcon +from PySide2.QtGui import QIcon class QIconCtorWithNoneTest(TimedQApplication): diff --git a/tests/QtGui/qimage_test.py b/tests/QtGui/qimage_test.py index 4e108a31..b8a6a85a 100644 --- a/tests/QtGui/qimage_test.py +++ b/tests/QtGui/qimage_test.py @@ -3,8 +3,8 @@ import unittest import py3kcompat as py3k -from PySide.QtGui import * -from PySide.QtWidgets import * +from PySide2.QtGui import * +from PySide2.QtWidgets import * from helper import UsesQApplication, adjust_filename xpm = [ diff --git a/tests/QtGui/qinputcontext_test.py b/tests/QtGui/qinputcontext_test.py index 12a782c0..e6106d5e 100644 --- a/tests/QtGui/qinputcontext_test.py +++ b/tests/QtGui/qinputcontext_test.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtCore import Qt -from PySide.QtWidgets import QPushButton +from PySide2.QtCore import Qt +from PySide2.QtWidgets import QPushButton from helper import UsesQApplication class QInputContextTest(UsesQApplication): diff --git a/tests/QtGui/qitemselection_test.py b/tests/QtGui/qitemselection_test.py index 8c6c34e0..7d35235c 100644 --- a/tests/QtGui/qitemselection_test.py +++ b/tests/QtGui/qitemselection_test.py @@ -1,7 +1,7 @@ import unittest from helper import UsesQApplication -from PySide.QtGui import QItemSelection, QStandardItemModel +from PySide2.QtGui import QItemSelection, QStandardItemModel class QItemSelectionTest(UsesQApplication): def testLen(self): diff --git a/tests/QtGui/qkeysequence_test.py b/tests/QtGui/qkeysequence_test.py index 8a5c3a40..2e1daed4 100644 --- a/tests/QtGui/qkeysequence_test.py +++ b/tests/QtGui/qkeysequence_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import Qt -from PySide.QtGui import QKeySequence +from PySide2.QtCore import Qt +from PySide2.QtGui import QKeySequence from helper import UsesQApplication diff --git a/tests/QtGui/qlayout_ref_test.py b/tests/QtGui/qlayout_ref_test.py index 5edde216..bfc4acff 100644 --- a/tests/QtGui/qlayout_ref_test.py +++ b/tests/QtGui/qlayout_ref_test.py @@ -4,9 +4,9 @@ import unittest from sys import getrefcount -from PySide.QtWidgets import QHBoxLayout, QVBoxLayout, QGridLayout, QWidget -from PySide.QtWidgets import QStackedLayout, QFormLayout -from PySide.QtWidgets import QApplication, QPushButton, QLabel +from PySide2.QtWidgets import QHBoxLayout, QVBoxLayout, QGridLayout, QWidget +from PySide2.QtWidgets import QStackedLayout, QFormLayout +from PySide2.QtWidgets import QApplication, QPushButton, QLabel from helper import UsesQApplication diff --git a/tests/QtGui/qlayout_test.py b/tests/QtGui/qlayout_test.py index 4392a10f..bdeee366 100644 --- a/tests/QtGui/qlayout_test.py +++ b/tests/QtGui/qlayout_test.py @@ -2,8 +2,8 @@ import unittest import sys from helper import UsesQApplication -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class MyLayout(QLayout): def __init__(self, parent=None): diff --git a/tests/QtGui/qlcdnumber_test.py b/tests/QtGui/qlcdnumber_test.py index 34101567..4ef128d3 100644 --- a/tests/QtGui/qlcdnumber_test.py +++ b/tests/QtGui/qlcdnumber_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import QApplication, QLCDNumber +from PySide2.QtWidgets import QApplication, QLCDNumber class QLCDNumberOverflow(unittest.TestCase): '''Test case for unhandled overflow on QLCDNumber() numDigits argument (see bug #215).''' diff --git a/tests/QtGui/qmatrix_test.py b/tests/QtGui/qmatrix_test.py index d1fa91ec..6fab5f17 100644 --- a/tests/QtGui/qmatrix_test.py +++ b/tests/QtGui/qmatrix_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QPoint -from PySide.QtGui import QMatrix, QMatrix4x4 +from PySide2.QtCore import QPoint +from PySide2.QtGui import QMatrix, QMatrix4x4 def qpointTimesQMatrix(point, matrix): diff --git a/tests/QtGui/qmenu_test.py b/tests/QtGui/qmenu_test.py index 16c5c12c..9dc0fd03 100644 --- a/tests/QtGui/qmenu_test.py +++ b/tests/QtGui/qmenu_test.py @@ -1,9 +1,9 @@ import unittest -from PySide.QtWidgets import QMenu -from PySide.QtGui import QKeySequence, QIcon -from PySide.QtCore import SLOT +from PySide2.QtWidgets import QMenu +from PySide2.QtGui import QKeySequence, QIcon +from PySide2.QtCore import SLOT from helper import UsesQApplication diff --git a/tests/QtGui/qobject_mi_test.py b/tests/QtGui/qobject_mi_test.py index 8310a8d0..d6cf15f3 100644 --- a/tests/QtGui/qobject_mi_test.py +++ b/tests/QtGui/qobject_mi_test.py @@ -2,9 +2,9 @@ import unittest -from PySide.QtCore import QObject -from PySide.QtGui import * -from PySide.QtWidgets import * +from PySide2.QtCore import QObject +from PySide2.QtGui import * +from PySide2.QtWidgets import * from helper import UsesQApplication diff --git a/tests/QtGui/qpainter_test.py b/tests/QtGui/qpainter_test.py index f86718ef..b0cbf95a 100644 --- a/tests/QtGui/qpainter_test.py +++ b/tests/QtGui/qpainter_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtGui import QPainter, QLinearGradient -from PySide.QtCore import QLine, QLineF, QPoint, QPointF, QRect, QRectF, Qt +from PySide2.QtGui import QPainter, QLinearGradient +from PySide2.QtCore import QLine, QLineF, QPoint, QPointF, QRect, QRectF, Qt class QPainterDrawText(unittest.TestCase): diff --git a/tests/QtGui/qpen_test.py b/tests/QtGui/qpen_test.py index bceb9ef2..473714fb 100644 --- a/tests/QtGui/qpen_test.py +++ b/tests/QtGui/qpen_test.py @@ -2,9 +2,9 @@ import unittest from helper import UsesQApplication -from PySide.QtCore import Qt, QTimer -from PySide.QtGui import QPen, QPainter -from PySide.QtWidgets import QWidget +from PySide2.QtCore import Qt, QTimer +from PySide2.QtGui import QPen, QPainter +from PySide2.QtWidgets import QWidget class Painting(QWidget): def __init__(self): diff --git a/tests/QtGui/qpicture_test.py b/tests/QtGui/qpicture_test.py index de0efc6a..fda07b11 100644 --- a/tests/QtGui/qpicture_test.py +++ b/tests/QtGui/qpicture_test.py @@ -2,9 +2,9 @@ import unittest import os from helper import UsesQApplication -from PySide.QtCore import QTimer -from PySide.QtGui import QPicture, QPainter -from PySide.QtWidgets import QWidget +from PySide2.QtCore import QTimer +from PySide2.QtGui import QPicture, QPainter +from PySide2.QtWidgets import QWidget class MyWidget(QWidget): def paintEvent(self, e): diff --git a/tests/QtGui/qpixmap_constructor.py b/tests/QtGui/qpixmap_constructor.py index 2e5e568a..13cf6cf4 100644 --- a/tests/QtGui/qpixmap_constructor.py +++ b/tests/QtGui/qpixmap_constructor.py @@ -2,8 +2,8 @@ import unittest -from PySide.QtGui import QPixmap -from PySide.QtWidgets import QLabel +from PySide2.QtGui import QPixmap +from PySide2.QtWidgets import QLabel from helper import UsesQApplication diff --git a/tests/QtGui/qpixmap_test.py b/tests/QtGui/qpixmap_test.py index 1a0339f6..77b7e43e 100644 --- a/tests/QtGui/qpixmap_test.py +++ b/tests/QtGui/qpixmap_test.py @@ -2,8 +2,8 @@ import unittest import os from helper import UsesQApplication -from PySide.QtGui import * -from PySide.QtCore import * +from PySide2.QtGui import * +from PySide2.QtCore import * class QPixmapTest(UsesQApplication): def testQVariantConstructor(self): diff --git a/tests/QtGui/qpixmapcache_test.py b/tests/QtGui/qpixmapcache_test.py index 7795b5df..cb8082d8 100644 --- a/tests/QtGui/qpixmapcache_test.py +++ b/tests/QtGui/qpixmapcache_test.py @@ -1,6 +1,6 @@ import unittest from helper import UsesQApplication -from PySide.QtGui import QPixmapCache, QPixmap +from PySide2.QtGui import QPixmapCache, QPixmap class QPixmapCacheTest(UsesQApplication): diff --git a/tests/QtGui/qpolygonf_test.py b/tests/QtGui/qpolygonf_test.py index f842eb43..6a616b50 100644 --- a/tests/QtGui/qpolygonf_test.py +++ b/tests/QtGui/qpolygonf_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtGui import * +from PySide2.QtCore import * +from PySide2.QtGui import * class QPolygonFNotIterableTest(unittest.TestCase): """Test if a QPolygonF is iterable""" diff --git a/tests/QtGui/qpushbutton_test.py b/tests/QtGui/qpushbutton_test.py index a19e2807..d9e6f29d 100644 --- a/tests/QtGui/qpushbutton_test.py +++ b/tests/QtGui/qpushbutton_test.py @@ -1,8 +1,8 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QPushButton, QMenu, QWidget -from PySide.QtCore import QTimer +from PySide2.QtWidgets import QPushButton, QMenu, QWidget +from PySide2.QtCore import QTimer class MyWidget(QWidget): def __init__(self): diff --git a/tests/QtGui/qradialgradient_test.py b/tests/QtGui/qradialgradient_test.py index 0c582c34..1067defa 100644 --- a/tests/QtGui/qradialgradient_test.py +++ b/tests/QtGui/qradialgradient_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtGui import QRadialGradient -from PySide.QtCore import QPointF +from PySide2.QtGui import QRadialGradient +from PySide2.QtCore import QPointF class QRadialGradientConstructor(unittest.TestCase): def _compare(self, qptf, tpl): diff --git a/tests/QtGui/qregion_test.py b/tests/QtGui/qregion_test.py index 2274d5e9..e8e080b0 100644 --- a/tests/QtGui/qregion_test.py +++ b/tests/QtGui/qregion_test.py @@ -1,8 +1,8 @@ import unittest import sys -from PySide.QtGui import QRegion -from PySide.QtCore import QPoint +from PySide2.QtGui import QRegion +from PySide2.QtCore import QPoint from helper import UsesQApplication class QRegionTest(UsesQApplication): diff --git a/tests/QtGui/qsplitter_test.py b/tests/QtGui/qsplitter_test.py index cacbdefb..d526a95b 100644 --- a/tests/QtGui/qsplitter_test.py +++ b/tests/QtGui/qsplitter_test.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtWidgets import QSplitter +from PySide2.QtWidgets import QSplitter from helper import UsesQApplication diff --git a/tests/QtGui/qstandarditemmodel_test.py b/tests/QtGui/qstandarditemmodel_test.py index fced6039..9e3b4bc2 100644 --- a/tests/QtGui/qstandarditemmodel_test.py +++ b/tests/QtGui/qstandarditemmodel_test.py @@ -1,8 +1,8 @@ import unittest import sys -from PySide.QtGui import QStandardItemModel, QStandardItem -from PySide.QtWidgets import QWidget +from PySide2.QtGui import QStandardItemModel, QStandardItem +from PySide2.QtWidgets import QWidget import shiboken from helper import UsesQApplication diff --git a/tests/QtGui/qstring_qkeysequence_test.py b/tests/QtGui/qstring_qkeysequence_test.py index 483fbca9..cb4fb65f 100644 --- a/tests/QtGui/qstring_qkeysequence_test.py +++ b/tests/QtGui/qstring_qkeysequence_test.py @@ -6,8 +6,8 @@ import unittest import py3kcompat as py3k from helper import UsesQApplication -from PySide.QtGui import QKeySequence -from PySide.QtWidgets import QAction +from PySide2.QtGui import QKeySequence +from PySide2.QtWidgets import QAction class QStringQKeySequenceTest(UsesQApplication): '''Tests conversions of QString to and from QKeySequence.''' diff --git a/tests/QtGui/qstyle_test.py b/tests/QtGui/qstyle_test.py index f91e7bff..127f70f6 100644 --- a/tests/QtGui/qstyle_test.py +++ b/tests/QtGui/qstyle_test.py @@ -2,7 +2,7 @@ import unittest from helper import UsesQApplication -from PySide.QtWidgets import QWidget, QLabel, QFontComboBox, QStyleFactory +from PySide2.QtWidgets import QWidget, QLabel, QFontComboBox, QStyleFactory class SetStyleTest(UsesQApplication): '''Tests setting the same QStyle for all objects in a UI hierarchy.''' diff --git a/tests/QtGui/qtableview_test.py b/tests/QtGui/qtableview_test.py index 743b405c..060b387b 100644 --- a/tests/QtGui/qtableview_test.py +++ b/tests/QtGui/qtableview_test.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtCore import QAbstractTableModel -from PySide.QtWidgets import QTableWidget +from PySide2.QtCore import QAbstractTableModel +from PySide2.QtWidgets import QTableWidget from helper import UsesQApplication class QPenTest(UsesQApplication): diff --git a/tests/QtGui/qtabwidget_test.py b/tests/QtGui/qtabwidget_test.py index 6f17fa49..359ee6b2 100644 --- a/tests/QtGui/qtabwidget_test.py +++ b/tests/QtGui/qtabwidget_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * from helper import TimedQApplication def makeBug643(tab): diff --git a/tests/QtGui/qtextdocument_undoredo_test.py b/tests/QtGui/qtextdocument_undoredo_test.py index 6943cea8..4cc95474 100644 --- a/tests/QtGui/qtextdocument_undoredo_test.py +++ b/tests/QtGui/qtextdocument_undoredo_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtGui import QTextDocument, QTextCursor +from PySide2.QtGui import QTextDocument, QTextCursor class QTextDocumentTest(unittest.TestCase): diff --git a/tests/QtGui/qtextedit_test.py b/tests/QtGui/qtextedit_test.py index 05de18c7..b3d53389 100644 --- a/tests/QtGui/qtextedit_test.py +++ b/tests/QtGui/qtextedit_test.py @@ -2,7 +2,7 @@ import unittest from sys import getrefcount -from PySide.QtWidgets import QTextEdit +from PySide2.QtWidgets import QTextEdit from helper import UsesQApplication diff --git a/tests/QtGui/qtextline_test.py b/tests/QtGui/qtextline_test.py index 76a711e3..c5b79291 100644 --- a/tests/QtGui/qtextline_test.py +++ b/tests/QtGui/qtextline_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtGui import QTextLayout +from PySide2.QtGui import QTextLayout from helper import UsesQApplication class QTextLineTest(UsesQApplication): diff --git a/tests/QtGui/qtoolbar_test.py b/tests/QtGui/qtoolbar_test.py index f6b4d054..5ce3b1d9 100644 --- a/tests/QtGui/qtoolbar_test.py +++ b/tests/QtGui/qtoolbar_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtWidgets import QToolBar, QMainWindow, QAction +from PySide2.QtWidgets import QToolBar, QMainWindow, QAction from helper import UsesQApplication diff --git a/tests/QtGui/qtoolbox_test.py b/tests/QtGui/qtoolbox_test.py index 80304c77..ecb02517 100644 --- a/tests/QtGui/qtoolbox_test.py +++ b/tests/QtGui/qtoolbox_test.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtGui import QIcon -from PySide.QtWidgets import QToolBox, QWidget +from PySide2.QtGui import QIcon +from PySide2.QtWidgets import QToolBox, QWidget from helper import UsesQApplication diff --git a/tests/QtGui/qtransform_test.py b/tests/QtGui/qtransform_test.py index 8cac9271..1c800fa9 100644 --- a/tests/QtGui/qtransform_test.py +++ b/tests/QtGui/qtransform_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import QPointF -from PySide.QtGui import QTransform, QPolygonF, QPolygonF +from PySide2.QtCore import QPointF +from PySide2.QtGui import QTransform, QPolygonF, QPolygonF class QTransformTest(unittest.TestCase): diff --git a/tests/QtGui/qvalidator_test.py b/tests/QtGui/qvalidator_test.py index b7de4987..71ab36bf 100644 --- a/tests/QtGui/qvalidator_test.py +++ b/tests/QtGui/qvalidator_test.py @@ -1,6 +1,6 @@ -from PySide.QtCore import * -from PySide.QtGui import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtGui import * +from PySide2.QtWidgets import * import unittest from helper import UsesQApplication diff --git a/tests/QtGui/qvariant_test.py b/tests/QtGui/qvariant_test.py index 3123a76d..8ab01bf2 100644 --- a/tests/QtGui/qvariant_test.py +++ b/tests/QtGui/qvariant_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class MyDiagram(QGraphicsScene): pass diff --git a/tests/QtGui/qwidget_setlayout_test.py b/tests/QtGui/qwidget_setlayout_test.py index a82b2dc0..8d8c9e73 100644 --- a/tests/QtGui/qwidget_setlayout_test.py +++ b/tests/QtGui/qwidget_setlayout_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtWidgets import QWidget, QVBoxLayout, QPushButton, QApplication, QHBoxLayout +from PySide2.QtWidgets import QWidget, QVBoxLayout, QPushButton, QApplication, QHBoxLayout from helper import UsesQApplication class QWidgetTest(UsesQApplication): diff --git a/tests/QtGui/qwidget_test.py b/tests/QtGui/qwidget_test.py index 964cbb88..0f7bdc09 100644 --- a/tests/QtGui/qwidget_test.py +++ b/tests/QtGui/qwidget_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtWidgets import QWidget, QMainWindow +from PySide2.QtWidgets import QWidget, QMainWindow from helper import UsesQApplication class QWidgetInherit(QMainWindow): diff --git a/tests/QtGui/reference_count_test.py b/tests/QtGui/reference_count_test.py index 82370979..45f9380b 100644 --- a/tests/QtGui/reference_count_test.py +++ b/tests/QtGui/reference_count_test.py @@ -8,9 +8,9 @@ import weakref import gc -from PySide.QtCore import Qt, QPointF -from PySide.QtGui import QPolygonF -from PySide.QtWidgets import QApplication, QGraphicsScene, QGraphicsRectItem, QGraphicsPolygonItem, QGraphicsRectItem +from PySide2.QtCore import Qt, QPointF +from PySide2.QtGui import QPolygonF +from PySide2.QtWidgets import QApplication, QGraphicsScene, QGraphicsRectItem, QGraphicsPolygonItem, QGraphicsRectItem from helper import UsesQApplication diff --git a/tests/QtGui/repr_test.py b/tests/QtGui/repr_test.py index 3dbe8791..aa293deb 100644 --- a/tests/QtGui/repr_test.py +++ b/tests/QtGui/repr_test.py @@ -2,14 +2,14 @@ import unittest import PySide -from PySide.QtCore import QPoint -from PySide.QtGui import QMatrix -from PySide.QtGui import QMatrix2x2, QMatrix2x3, QMatrix2x4 -from PySide.QtGui import QMatrix3x2, QMatrix3x3, QMatrix3x4 -from PySide.QtGui import QMatrix4x2, QMatrix4x3, QMatrix4x4 -from PySide.QtGui import QVector2D, QVector3D, QVector4D -from PySide.QtGui import QColor, QTransform, QKeySequence, QQuaternion -from PySide.QtGui import QPolygon +from PySide2.QtCore import QPoint +from PySide2.QtGui import QMatrix +from PySide2.QtGui import QMatrix2x2, QMatrix2x3, QMatrix2x4 +from PySide2.QtGui import QMatrix3x2, QMatrix3x3, QMatrix3x4 +from PySide2.QtGui import QMatrix4x2, QMatrix4x3, QMatrix4x4 +from PySide2.QtGui import QVector2D, QVector3D, QVector4D +from PySide2.QtGui import QColor, QTransform, QKeySequence, QQuaternion +from PySide2.QtGui import QPolygon class ReprCopyHelper: def testCopy(self): diff --git a/tests/QtGui/returnquadruplesofnumbers_test.py b/tests/QtGui/returnquadruplesofnumbers_test.py index cec3d28e..1dd1b140 100644 --- a/tests/QtGui/returnquadruplesofnumbers_test.py +++ b/tests/QtGui/returnquadruplesofnumbers_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtGui import QTextCursor -from PySide.QtPrintSupport import QPrinter -from PySide.QtWidgets import QLayout, QWidget, QGraphicsLayout, QGraphicsLayoutItem +from PySide2.QtGui import QTextCursor +from PySide2.QtPrintSupport import QPrinter +from PySide2.QtWidgets import QLayout, QWidget, QGraphicsLayout, QGraphicsLayoutItem from helper import UsesQApplication diff --git a/tests/QtGui/standardpixmap_test.py b/tests/QtGui/standardpixmap_test.py index 694121dd..dbbf3a31 100644 --- a/tests/QtGui/standardpixmap_test.py +++ b/tests/QtGui/standardpixmap_test.py @@ -1,8 +1,8 @@ import unittest -from PySide.QtGui import QPixmap -from PySide.QtWidgets import QStyle +from PySide2.QtGui import QPixmap +from PySide2.QtWidgets import QStyle from helper import UsesQApplication diff --git a/tests/QtGui/test_module_template.py b/tests/QtGui/test_module_template.py index 7a386a5c..40a83d17 100644 --- a/tests/QtGui/test_module_template.py +++ b/tests/QtGui/test_module_template.py @@ -1,5 +1,5 @@ -from PySide.QtWidgets import QWidget -from PySide.QtCore import QObject +from PySide2.QtWidgets import QWidget +from PySide2.QtCore import QObject class MyQObject(QObject): pass diff --git a/tests/QtGui/virtual_protected_inheritance_test.py b/tests/QtGui/virtual_protected_inheritance_test.py index b597ccd2..8e090a76 100644 --- a/tests/QtGui/virtual_protected_inheritance_test.py +++ b/tests/QtGui/virtual_protected_inheritance_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import QTimerEvent -from PySide.QtWidgets import QApplication, QSpinBox +from PySide2.QtCore import QTimerEvent +from PySide2.QtWidgets import QApplication, QSpinBox from helper import UsesQApplication diff --git a/tests/QtGui/virtual_pure_override_test.py b/tests/QtGui/virtual_pure_override_test.py index 7aced389..81c31ae0 100644 --- a/tests/QtGui/virtual_pure_override_test.py +++ b/tests/QtGui/virtual_pure_override_test.py @@ -2,9 +2,9 @@ import unittest -from PySide.QtWidgets import QGraphicsScene, QGraphicsRectItem, QGraphicsView, QApplication -from PySide.QtGui import QBrush, QColor -from PySide.QtCore import QTimer +from PySide2.QtWidgets import QGraphicsScene, QGraphicsRectItem, QGraphicsView, QApplication +from PySide2.QtGui import QBrush, QColor +from PySide2.QtCore import QTimer from helper import UsesQApplication qgraphics_item_painted = False diff --git a/tests/QtGui/x11_symbols_test.py b/tests/QtGui/x11_symbols_test.py index f61499ed..cb0e380b 100644 --- a/tests/QtGui/x11_symbols_test.py +++ b/tests/QtGui/x11_symbols_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtWidgets import * +from PySide2.QtWidgets import * class X11Test(unittest.TestCase): diff --git a/tests/QtHelp/help_test.py b/tests/QtHelp/help_test.py index e2ff532a..3ae53fa8 100644 --- a/tests/QtHelp/help_test.py +++ b/tests/QtHelp/help_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtHelp import QHelpEngine +from PySide2.QtHelp import QHelpEngine from helper import UsesQApplication diff --git a/tests/QtMultimedia/audio_test.py b/tests/QtMultimedia/audio_test.py index 773524ed..b831561c 100644 --- a/tests/QtMultimedia/audio_test.py +++ b/tests/QtMultimedia/audio_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtMultimedia import * +from PySide2.QtCore import * +from PySide2.QtMultimedia import * class testAudioDevices(unittest.TestCase): diff --git a/tests/QtNetwork/accessManager_test.py b/tests/QtNetwork/accessManager_test.py index 65a84805..32500944 100644 --- a/tests/QtNetwork/accessManager_test.py +++ b/tests/QtNetwork/accessManager_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtNetwork import * +from PySide2.QtCore import * +from PySide2.QtNetwork import * from helper import UsesQCoreApplication from httpd import TestServer diff --git a/tests/QtNetwork/basic_auth_test.py b/tests/QtNetwork/basic_auth_test.py index 3a78e9a8..4df1fd3a 100644 --- a/tests/QtNetwork/basic_auth_test.py +++ b/tests/QtNetwork/basic_auth_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtNetwork import * +from PySide2.QtCore import * +from PySide2.QtNetwork import * from helper import UsesQCoreApplication from httpd import TestServer diff --git a/tests/QtNetwork/bug_446.py b/tests/QtNetwork/bug_446.py index d3a9d098..206b099b 100644 --- a/tests/QtNetwork/bug_446.py +++ b/tests/QtNetwork/bug_446.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtNetwork import * +from PySide2.QtCore import * +from PySide2.QtNetwork import * from helper import UsesQCoreApplication diff --git a/tests/QtNetwork/http_test.py b/tests/QtNetwork/http_test.py index b6bfea5f..7c14b30f 100644 --- a/tests/QtNetwork/http_test.py +++ b/tests/QtNetwork/http_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtNetwork import * +from PySide2.QtCore import * +from PySide2.QtNetwork import * from helper import UsesQCoreApplication from httpd import TestServer diff --git a/tests/QtNetwork/qipv6address_test.py b/tests/QtNetwork/qipv6address_test.py index eeb4c61c..8abcbc45 100644 --- a/tests/QtNetwork/qipv6address_test.py +++ b/tests/QtNetwork/qipv6address_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtNetwork import * +from PySide2.QtNetwork import * class QIPv6AddressGetItemTest(unittest.TestCase): def testLength(self): diff --git a/tests/QtNetwork/tcpserver_test.py b/tests/QtNetwork/tcpserver_test.py index 77f830e3..aa2b4ac3 100644 --- a/tests/QtNetwork/tcpserver_test.py +++ b/tests/QtNetwork/tcpserver_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtNetwork import QTcpServer +from PySide2.QtNetwork import QTcpServer class ListenDefaultArgsCase(unittest.TestCase): '''Test case for TcpServer.listen with default args''' diff --git a/tests/QtNetwork/udpsocket_test.py b/tests/QtNetwork/udpsocket_test.py index 66f89201..32a91d41 100644 --- a/tests/QtNetwork/udpsocket_test.py +++ b/tests/QtNetwork/udpsocket_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import QUrl, QObject, SIGNAL, QCoreApplication, QTimer -from PySide.QtNetwork import QUdpSocket, QHostAddress +from PySide2.QtCore import QUrl, QObject, SIGNAL, QCoreApplication, QTimer +from PySide2.QtNetwork import QUdpSocket, QHostAddress class HttpSignalsCase(unittest.TestCase): '''Test case for bug #124 - readDatagram signature diff --git a/tests/QtOpenGL/qglbuffer_test.py b/tests/QtOpenGL/qglbuffer_test.py index 8d6d5035..38837a06 100644 --- a/tests/QtOpenGL/qglbuffer_test.py +++ b/tests/QtOpenGL/qglbuffer_test.py @@ -3,8 +3,8 @@ import unittest -from PySide.QtCore import QByteArray -from PySide.QtOpenGL import QGLBuffer, QGLWidget +from PySide2.QtCore import QByteArray +from PySide2.QtOpenGL import QGLBuffer, QGLWidget import py3kcompat as py3k from helper import UsesQApplication diff --git a/tests/QtOpenGL/qglwidget_test.py b/tests/QtOpenGL/qglwidget_test.py index 46d7816c..719b7dc3 100644 --- a/tests/QtOpenGL/qglwidget_test.py +++ b/tests/QtOpenGL/qglwidget_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import * -from PySide.QtOpenGL import * +from PySide2.QtWidgets import * +from PySide2.QtOpenGL import * class TestQGLWidget (unittest.TestCase): def testIt(self): diff --git a/tests/QtScript/bug_1022.py b/tests/QtScript/bug_1022.py index 3a246145..0ddebac8 100644 --- a/tests/QtScript/bug_1022.py +++ b/tests/QtScript/bug_1022.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import * -from PySide.QtScript import * +from PySide2.QtCore import * +from PySide2.QtScript import * class QScriptValueTest(unittest.TestCase): def testQScriptValue(self): diff --git a/tests/QtScript/engine_test.py b/tests/QtScript/engine_test.py index 074d3df4..19afdeba 100644 --- a/tests/QtScript/engine_test.py +++ b/tests/QtScript/engine_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject -from PySide.QtScript import QScriptEngine +from PySide2.QtCore import QObject +from PySide2.QtScript import QScriptEngine class QScriptEngineTest(unittest.TestCase): diff --git a/tests/QtScript/property_test.py b/tests/QtScript/property_test.py index 52c01f7c..5ef2f9bf 100644 --- a/tests/QtScript/property_test.py +++ b/tests/QtScript/property_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject, Property, QCoreApplication -from PySide.QtScript import QScriptEngine +from PySide2.QtCore import QObject, Property, QCoreApplication +from PySide2.QtScript import QScriptEngine class MyObject(QObject): def __init__(self, parent = None): diff --git a/tests/QtScript/qscriptvalue_test.py b/tests/QtScript/qscriptvalue_test.py index e5b6a637..10ae07a0 100644 --- a/tests/QtScript/qscriptvalue_test.py +++ b/tests/QtScript/qscriptvalue_test.py @@ -1,6 +1,6 @@ import unittest import PySide -from PySide.QtScript import * +from PySide2.QtScript import * from helper import UsesQApplication diff --git a/tests/QtScriptTools/debugger_test.py b/tests/QtScriptTools/debugger_test.py index 8805018c..817690bc 100644 --- a/tests/QtScriptTools/debugger_test.py +++ b/tests/QtScriptTools/debugger_test.py @@ -1,9 +1,9 @@ import unittest -from PySide.QtCore import SIGNAL, QTimer -from PySide.QtScript import QScriptEngine -from PySide.QtScriptTools import QScriptEngineDebugger +from PySide2.QtCore import SIGNAL, QTimer +from PySide2.QtScript import QScriptEngine +from PySide2.QtScriptTools import QScriptEngineDebugger from helper import UsesQApplication diff --git a/tests/QtSql/bug_1013.py b/tests/QtSql/bug_1013.py index f0cee701..e9502566 100644 --- a/tests/QtSql/bug_1013.py +++ b/tests/QtSql/bug_1013.py @@ -1,5 +1,5 @@ -from PySide.QtCore import * -from PySide.QtSql import * +from PySide2.QtCore import * +from PySide2.QtSql import * import unittest class TestBug1013 (unittest.TestCase): diff --git a/tests/QtSql/qsqldatabaseandqueries_test.py b/tests/QtSql/qsqldatabaseandqueries_test.py index af026162..fb25430c 100644 --- a/tests/QtSql/qsqldatabaseandqueries_test.py +++ b/tests/QtSql/qsqldatabaseandqueries_test.py @@ -5,8 +5,8 @@ import sys import unittest from PySide2 import QtSql -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class Foo(QWidget): def __init__(self): diff --git a/tests/QtSql/qvarianttype_test.py b/tests/QtSql/qvarianttype_test.py index 5612f89f..394758ce 100644 --- a/tests/QtSql/qvarianttype_test.py +++ b/tests/QtSql/qvarianttype_test.py @@ -1,7 +1,7 @@ '''Test cases for QVariant::Type converter''' import unittest import py3kcompat as py3k -from PySide.QtSql import QSqlField +from PySide2.QtSql import QSqlField class QVariantTypeTest(unittest.TestCase): def testQVariantType(self): diff --git a/tests/QtSvg/qsvggenerator_test.py b/tests/QtSvg/qsvggenerator_test.py index cec7fdaf..fe34c827 100644 --- a/tests/QtSvg/qsvggenerator_test.py +++ b/tests/QtSvg/qsvggenerator_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python import unittest from sys import getrefcount -from PySide.QtCore import QBuffer -from PySide.QtSvg import QSvgGenerator +from PySide2.QtCore import QBuffer +from PySide2.QtSvg import QSvgGenerator class QSvgGeneratorTest(unittest.TestCase): diff --git a/tests/QtSvg/qsvgrenderer_test.py b/tests/QtSvg/qsvgrenderer_test.py index 5ca1e456..9d5fa964 100644 --- a/tests/QtSvg/qsvgrenderer_test.py +++ b/tests/QtSvg/qsvgrenderer_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python import unittest, os -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtSvg import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtSvg import * class QSvgRendererTest(unittest.TestCase): diff --git a/tests/QtSvg/qsvgwidget_test.py b/tests/QtSvg/qsvgwidget_test.py index 65794eef..3594ac8f 100644 --- a/tests/QtSvg/qsvgwidget_test.py +++ b/tests/QtSvg/qsvgwidget_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python import unittest, os -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtSvg import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtSvg import * class QSvgWidgetTest(unittest.TestCase): diff --git a/tests/QtTest/click_test.py b/tests/QtTest/click_test.py index 916d97e3..7ac0add3 100644 --- a/tests/QtTest/click_test.py +++ b/tests/QtTest/click_test.py @@ -3,9 +3,9 @@ import unittest -from PySide.QtCore import Qt, QObject -from PySide.QtWidgets import QPushButton, QLineEdit -from PySide.QtTest import QTest +from PySide2.QtCore import Qt, QObject +from PySide2.QtWidgets import QPushButton, QLineEdit +from PySide2.QtTest import QTest from helper import UsesQApplication diff --git a/tests/QtTest/eventfilter_test.py b/tests/QtTest/eventfilter_test.py index 65a30f3e..16ce5837 100644 --- a/tests/QtTest/eventfilter_test.py +++ b/tests/QtTest/eventfilter_test.py @@ -3,9 +3,9 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtTest import QTest +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtTest import QTest from helper import UsesQApplication diff --git a/tests/QtTest/touchevent_test.py b/tests/QtTest/touchevent_test.py index d90f4584..9f3337aa 100644 --- a/tests/QtTest/touchevent_test.py +++ b/tests/QtTest/touchevent_test.py @@ -1,6 +1,6 @@ -from PySide.QtWidgets import QWidget -from PySide.QtCore import QPoint, QTimer, Qt, QEvent -from PySide.QtTest import QTest +from PySide2.QtWidgets import QWidget +from PySide2.QtCore import QPoint, QTimer, Qt, QEvent +from PySide2.QtTest import QTest import unittest diff --git a/tests/QtUiTools/bug_1060.py b/tests/QtUiTools/bug_1060.py index 36b7fd6a..006b7b0a 100644 --- a/tests/QtUiTools/bug_1060.py +++ b/tests/QtUiTools/bug_1060.py @@ -1,7 +1,7 @@ ''' unit test for BUG #1060 ''' -from PySide.QtWidgets import QApplication -from PySide.QtUiTools import QUiLoader +from PySide2.QtWidgets import QApplication +from PySide2.QtUiTools import QUiLoader from helper import adjust_filename class MyQUiLoader(QUiLoader): diff --git a/tests/QtUiTools/bug_360.py b/tests/QtUiTools/bug_360.py index 2b8cc76c..f6f77e85 100644 --- a/tests/QtUiTools/bug_360.py +++ b/tests/QtUiTools/bug_360.py @@ -3,7 +3,7 @@ import os from helper import UsesQApplication from PySide2 import QtCore, QtGui -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader class MyQUiLoader(QUiLoader): def __init__(self, baseinstance): diff --git a/tests/QtUiTools/bug_376.py b/tests/QtUiTools/bug_376.py index e1b95462..13b2e0cd 100644 --- a/tests/QtUiTools/bug_376.py +++ b/tests/QtUiTools/bug_376.py @@ -3,7 +3,7 @@ import os from helper import UsesQApplication from PySide2 import QtCore, QtGui -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader class BugTest(UsesQApplication): def testCase(self): diff --git a/tests/QtUiTools/bug_392.py b/tests/QtUiTools/bug_392.py index 1cc431e5..b6719a6e 100644 --- a/tests/QtUiTools/bug_392.py +++ b/tests/QtUiTools/bug_392.py @@ -3,7 +3,7 @@ import os from helper import UsesQApplication from PySide2 import QtGui -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader class MyWidget(QtGui.QComboBox): def __init__(self, parent=None): diff --git a/tests/QtUiTools/bug_426.py b/tests/QtUiTools/bug_426.py index 8184653d..e322d92c 100644 --- a/tests/QtUiTools/bug_426.py +++ b/tests/QtUiTools/bug_426.py @@ -1,7 +1,7 @@ import sys import os from PySide2 import QtCore, QtGui -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader class Window(object): def __init__(self): diff --git a/tests/QtUiTools/bug_552.py b/tests/QtUiTools/bug_552.py index 869c2e52..b6278696 100644 --- a/tests/QtUiTools/bug_552.py +++ b/tests/QtUiTools/bug_552.py @@ -1,6 +1,6 @@ from helper import adjust_filename from PySide2 import QtGui, QtCore -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader class View_1(QtGui.QWidget): diff --git a/tests/QtUiTools/bug_909.py b/tests/QtUiTools/bug_909.py index bf98a5b9..61ca1a50 100644 --- a/tests/QtUiTools/bug_909.py +++ b/tests/QtUiTools/bug_909.py @@ -1,9 +1,9 @@ import sys import unittest -from PySide.QtCore import QFile -from PySide.QtWidgets import QTabWidget -from PySide.QtUiTools import QUiLoader +from PySide2.QtCore import QFile +from PySide2.QtWidgets import QTabWidget +from PySide2.QtUiTools import QUiLoader from helper import UsesQApplication from helper import adjust_filename diff --git a/tests/QtUiTools/bug_913.py b/tests/QtUiTools/bug_913.py index 41b7e792..e9721f5c 100644 --- a/tests/QtUiTools/bug_913.py +++ b/tests/QtUiTools/bug_913.py @@ -5,9 +5,9 @@ import sys import unittest from helper import adjust_filename -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtUiTools import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtUiTools import * class TestBug913 (unittest.TestCase): diff --git a/tests/QtUiTools/bug_965.py b/tests/QtUiTools/bug_965.py index 4dbd281d..23459be0 100644 --- a/tests/QtUiTools/bug_965.py +++ b/tests/QtUiTools/bug_965.py @@ -1,4 +1,4 @@ -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader import unittest from helper import UsesQApplication diff --git a/tests/QtUiTools/ui_test.py b/tests/QtUiTools/ui_test.py index 6f599cef..49b63760 100644 --- a/tests/QtUiTools/ui_test.py +++ b/tests/QtUiTools/ui_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtUiTools import QUiLoader +from PySide2.QtUiTools import QUiLoader from helper import UsesQApplication diff --git a/tests/QtUiTools/uiloader_test.py b/tests/QtUiTools/uiloader_test.py index d019524d..52f6c43d 100644 --- a/tests/QtUiTools/uiloader_test.py +++ b/tests/QtUiTools/uiloader_test.py @@ -2,8 +2,8 @@ import unittest import os from helper import UsesQApplication -from PySide.QtWidgets import QWidget -from PySide.QtUiTools import QUiLoader +from PySide2.QtWidgets import QWidget +from PySide2.QtUiTools import QUiLoader def get_file_path(): for path in file_path: diff --git a/tests/QtWebKit/bug_448.py b/tests/QtWebKit/bug_448.py index 418d65a4..9fb2d50f 100644 --- a/tests/QtWebKit/bug_448.py +++ b/tests/QtWebKit/bug_448.py @@ -4,8 +4,8 @@ import unittest import sys -from PySide.QtWidgets import QApplication -from PySide.QtWebKit import QWebView +from PySide2.QtWidgets import QApplication +from PySide2.QtWebKit import QWebView class Bug448(unittest.TestCase): def onError(self, erros): diff --git a/tests/QtWebKit/bug_694.py b/tests/QtWebKit/bug_694.py index 0748515a..93225a83 100644 --- a/tests/QtWebKit/bug_694.py +++ b/tests/QtWebKit/bug_694.py @@ -1,8 +1,8 @@ import sys import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * -from PySide.QtWebKit import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * +from PySide2.QtWebKit import * class ErrorPage (QWebPage): diff --git a/tests/QtWebKit/bug_803.py b/tests/QtWebKit/bug_803.py index be473993..37e5cf2b 100644 --- a/tests/QtWebKit/bug_803.py +++ b/tests/QtWebKit/bug_803.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtWidgets import * -from PySide.QtWebKit import * +from PySide2.QtWidgets import * +from PySide2.QtWebKit import * class TestBug803 (unittest.TestCase): diff --git a/tests/QtWebKit/bug_899.py b/tests/QtWebKit/bug_899.py index f4daaab0..55bb7ac5 100644 --- a/tests/QtWebKit/bug_899.py +++ b/tests/QtWebKit/bug_899.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import Property, QObject -from PySide.QtWebKit import QWebView +from PySide2.QtCore import Property, QObject +from PySide2.QtWebKit import QWebView from helper import TimedQApplication class TestLambdaPropery(TimedQApplication): diff --git a/tests/QtWebKit/bug_959.py b/tests/QtWebKit/bug_959.py index 740ca3ed..eb7efc74 100644 --- a/tests/QtWebKit/bug_959.py +++ b/tests/QtWebKit/bug_959.py @@ -1,6 +1,6 @@ -from PySide.QtCore import QObject, Slot, QTimer -from PySide.QtWebKit import QWebView -from PySide.QtWidgets import QApplication +from PySide2.QtCore import QObject, Slot, QTimer +from PySide2.QtWebKit import QWebView +from PySide2.QtWidgets import QApplication from PySide2 import QtCore import sys diff --git a/tests/QtWebKit/qml_plugin_test.py b/tests/QtWebKit/qml_plugin_test.py index 0da71bd5..6add3edf 100644 --- a/tests/QtWebKit/qml_plugin_test.py +++ b/tests/QtWebKit/qml_plugin_test.py @@ -3,9 +3,9 @@ import os import sys import unittest -from PySide.QtCore import QUrl, QTimer -from PySide.QtWidgets import QApplication, QLabel -from PySide.QtWebKit import QWebPluginFactory, QWebView, QWebSettings +from PySide2.QtCore import QUrl, QTimer +from PySide2.QtWidgets import QApplication, QLabel +from PySide2.QtWebKit import QWebPluginFactory, QWebView, QWebSettings from helper import UsesQApplication diff --git a/tests/QtWebKit/qvariantlist_property_test.py b/tests/QtWebKit/qvariantlist_property_test.py index 33ffc1d2..710c6da2 100644 --- a/tests/QtWebKit/qvariantlist_property_test.py +++ b/tests/QtWebKit/qvariantlist_property_test.py @@ -1,6 +1,6 @@ import unittest -from PySide.QtCore import Property, QObject -from PySide.QtWebKit import QWebView +from PySide2.QtCore import Property, QObject +from PySide2.QtWebKit import QWebView from helper import TimedQApplication class TestLoadFinished(TimedQApplication): diff --git a/tests/QtWebKit/webframe_test.py b/tests/QtWebKit/webframe_test.py index 596617d4..8bdeb1ee 100644 --- a/tests/QtWebKit/webframe_test.py +++ b/tests/QtWebKit/webframe_test.py @@ -1,9 +1,9 @@ import unittest import sys -from PySide.QtCore import QObject, SIGNAL, QUrl -from PySide.QtWebKit import * -from PySide.QtNetwork import QNetworkRequest +from PySide2.QtCore import QObject, SIGNAL, QUrl +from PySide2.QtWebKit import * +from PySide2.QtNetwork import QNetworkRequest from helper import adjust_filename, UsesQApplication diff --git a/tests/QtWebKit/webpage_test.py b/tests/QtWebKit/webpage_test.py index 20796971..07ddc5a4 100644 --- a/tests/QtWebKit/webpage_test.py +++ b/tests/QtWebKit/webpage_test.py @@ -3,9 +3,9 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, QUrl -from PySide.QtWebKit import QWebPage -from PySide.QtNetwork import QNetworkAccessManager +from PySide2.QtCore import QObject, SIGNAL, QUrl +from PySide2.QtWebKit import QWebPage +from PySide2.QtNetwork import QNetworkAccessManager from helper import adjust_filename, TimedQApplication diff --git a/tests/QtWebKit/webview_test.py b/tests/QtWebKit/webview_test.py index 591d0724..ad1c5232 100644 --- a/tests/QtWebKit/webview_test.py +++ b/tests/QtWebKit/webview_test.py @@ -5,9 +5,9 @@ import unittest import py3kcompat as py3k import sys -from PySide.QtCore import QObject, SIGNAL, QUrl -from PySide.QtWebKit import QWebPage, QWebView -from PySide.QtNetwork import QNetworkRequest +from PySide2.QtCore import QObject, SIGNAL, QUrl +from PySide2.QtWebKit import QWebPage, QWebView +from PySide2.QtNetwork import QNetworkRequest from helper import adjust_filename, TimedQApplication diff --git a/tests/QtXml/qdomdocument_test.py b/tests/QtXml/qdomdocument_test.py index 86aece7b..052329c3 100644 --- a/tests/QtXml/qdomdocument_test.py +++ b/tests/QtXml/qdomdocument_test.py @@ -1,7 +1,7 @@ #!/usr/bin/python import unittest -from PySide.QtCore import QByteArray -from PySide.QtXml import QDomDocument, QDomElement +from PySide2.QtCore import QByteArray +from PySide2.QtXml import QDomDocument, QDomElement class QDomDocumentTest(unittest.TestCase): @@ -9,14 +9,14 @@ class QDomDocumentTest(unittest.TestCase): self.dom = QDomDocument() self.goodXmlData = QByteArray(''' - <typesystem package="PySide.QtXml"> + <typesystem package="PySide2.QtXml"> <value-type name="QDomDocument"/> <value-type name="QDomElement"/> </typesystem> ''') self.badXmlData = QByteArray(''' - <typesystem package="PySide.QtXml"> + <typesystem package="PySide2.QtXml"> <value-type name="QDomDocument"> </typesystem> ''') @@ -54,7 +54,7 @@ class QDomDocumentTest(unittest.TestCase): ok, errorStr, errorLine, errorColumn = self.dom.setContent(self.goodXmlData, True) root = self.dom.documentElement() self.assertEqual(root.tagName(), 'typesystem') - checkAttribute(root, 'package', 'PySide.QtXml') + checkAttribute(root, 'package', 'PySide2.QtXml') child = root.firstChildElement('value-type') checkAttribute(child, 'name', 'QDomDocument') diff --git a/tests/QtXml/qxmlsimplereader_test.py b/tests/QtXml/qxmlsimplereader_test.py index aaaf45a4..0f5f1aaf 100644 --- a/tests/QtXml/qxmlsimplereader_test.py +++ b/tests/QtXml/qxmlsimplereader_test.py @@ -1,6 +1,6 @@ #!/usr/bin/python import unittest -from PySide.QtXml import QXmlSimpleReader +from PySide2.QtXml import QXmlSimpleReader class QXmlSimpleReaderTest(unittest.TestCase): diff --git a/tests/QtXmlPatterns/import_test.py b/tests/QtXmlPatterns/import_test.py index 5bab9755..f96c28af 100644 --- a/tests/QtXmlPatterns/import_test.py +++ b/tests/QtXmlPatterns/import_test.py @@ -1,8 +1,8 @@ #!/usr/bin/python import unittest -from PySide.QtCore import * -from PySide.QtXmlPatterns import QXmlSchema +from PySide2.QtCore import * +from PySide2.QtXmlPatterns import QXmlSchema from helper import UsesQCoreApplication class QXmlPatternsTest(UsesQCoreApplication): diff --git a/tests/mac/qmacstyle_test.py b/tests/mac/qmacstyle_test.py index e23a6e55..f04eb3f7 100644 --- a/tests/mac/qmacstyle_test.py +++ b/tests/mac/qmacstyle_test.py @@ -1,6 +1,6 @@ -# Qt5: this is gone: from PySide.QtGui import QMacStyle -from PySide.QtWidgets import QApplication, QLabel, QStyleFactory -from PySide.QtCore import QObject +# Qt5: this is gone: from PySide2.QtGui import QMacStyle +from PySide2.QtWidgets import QApplication, QLabel, QStyleFactory +from PySide2.QtCore import QObject import unittest diff --git a/tests/manually/bug_841.py b/tests/manually/bug_841.py index 61386789..239911a9 100644 --- a/tests/manually/bug_841.py +++ b/tests/manually/bug_841.py @@ -2,8 +2,8 @@ from __future__ import print_function import sys
-from PySide.QtGui import QStandardItem, QStandardItemModel
-from PySide.QtWidgets import QMainWindow, QTreeView, QAbstractItemView, QApplication, QMessageBox
+from PySide2.QtGui import QStandardItem, QStandardItemModel
+from PySide2.QtWidgets import QMainWindow, QTreeView, QAbstractItemView, QApplication, QMessageBox
class Item(QStandardItem):
def __init__(self, text):
diff --git a/tests/pysidetest/application_test.py b/tests/pysidetest/application_test.py index 1cc937aa..ea969677 100644 --- a/tests/pysidetest/application_test.py +++ b/tests/pysidetest/application_test.py @@ -2,7 +2,7 @@ import unittest from testbinding import TestObject -from PySide.QtWidgets import QApplication +from PySide2.QtWidgets import QApplication class QApplicationInstance(unittest.TestCase): diff --git a/tests/pysidetest/decoratedslot_test.py b/tests/pysidetest/decoratedslot_test.py index 63a5be72..d5ecb082 100644 --- a/tests/pysidetest/decoratedslot_test.py +++ b/tests/pysidetest/decoratedslot_test.py @@ -1,7 +1,7 @@ #!/usr/bin/python import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject from testbinding import TestObject class Receiver(QObject): diff --git a/tests/pysidetest/delegatecreateseditor_test.py b/tests/pysidetest/delegatecreateseditor_test.py index 0b223500..0ba3b2b4 100644 --- a/tests/pysidetest/delegatecreateseditor_test.py +++ b/tests/pysidetest/delegatecreateseditor_test.py @@ -4,8 +4,8 @@ import unittest from helper import UsesQApplication from testbinding import TestView -from PySide.QtCore import Qt -from PySide.QtWidgets import QAbstractItemDelegate, QComboBox +from PySide2.QtCore import Qt +from PySide2.QtWidgets import QAbstractItemDelegate, QComboBox id_text = 'This is me' diff --git a/tests/pysidetest/list_signal_test.py b/tests/pysidetest/list_signal_test.py index 36d3c21d..b55eb075 100644 --- a/tests/pysidetest/list_signal_test.py +++ b/tests/pysidetest/list_signal_test.py @@ -2,7 +2,7 @@ import unittest from testbinding import TestObject -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class ListConnectionTest(unittest.TestCase): diff --git a/tests/pysidetest/modelview_test.py b/tests/pysidetest/modelview_test.py index f1cd8bbb..00bb9404 100644 --- a/tests/pysidetest/modelview_test.py +++ b/tests/pysidetest/modelview_test.py @@ -3,7 +3,7 @@ import unittest import py3kcompat as py3k from testbinding import TestView -from PySide.QtCore import QAbstractListModel, QObject, QModelIndex +from PySide2.QtCore import QAbstractListModel, QObject, QModelIndex '''Tests model/view relationship.''' diff --git a/tests/pysidetest/qvariant_test.py b/tests/pysidetest/qvariant_test.py index bc694dc6..63a1ebc9 100644 --- a/tests/pysidetest/qvariant_test.py +++ b/tests/pysidetest/qvariant_test.py @@ -1,8 +1,8 @@ import unittest from testbinding import TestObject -from PySide.QtCore import Qt -from PySide.QtWidgets import QKeySequence +from PySide2.QtCore import Qt +from PySide2.QtWidgets import QKeySequence from helper import UsesQApplication diff --git a/tests/pysidetest/signalemissionfrompython_test.py b/tests/pysidetest/signalemissionfrompython_test.py index 9d130cb4..6d948d8f 100644 --- a/tests/pysidetest/signalemissionfrompython_test.py +++ b/tests/pysidetest/signalemissionfrompython_test.py @@ -2,7 +2,7 @@ import unittest from testbinding import TestObject -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL '''Tests the behaviour of signals with default values when emitted from Python.''' diff --git a/tests/pysidetest/signalwithdefaultvalue_test.py b/tests/pysidetest/signalwithdefaultvalue_test.py index 3a18bb71..ab84cc56 100644 --- a/tests/pysidetest/signalwithdefaultvalue_test.py +++ b/tests/pysidetest/signalwithdefaultvalue_test.py @@ -2,7 +2,7 @@ import unittest from testbinding import TestObject -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL '''Tests the behaviour of signals with default values.''' diff --git a/tests/pysidetest/typedef_signal_test.py b/tests/pysidetest/typedef_signal_test.py index c2cdd121..b00a9972 100644 --- a/tests/pysidetest/typedef_signal_test.py +++ b/tests/pysidetest/typedef_signal_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject +from PySide2.QtCore import QObject from testbinding import TestObject class Receiver(QObject): diff --git a/tests/signals/args_dont_match_test.py b/tests/signals/args_dont_match_test.py index 25211671..5a8ab45a 100644 --- a/tests/signals/args_dont_match_test.py +++ b/tests/signals/args_dont_match_test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class ArgsDontMatch(unittest.TestCase): diff --git a/tests/signals/bug_312.py b/tests/signals/bug_312.py index 3aa54cef..af1dc530 100644 --- a/tests/signals/bug_312.py +++ b/tests/signals/bug_312.py @@ -3,7 +3,7 @@ import unittest import sys -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL MAX_LOOPS = 5 MAX_OBJECTS = 200 diff --git a/tests/signals/decorators_test.py b/tests/signals/decorators_test.py index 8ca614ec..e6cec630 100644 --- a/tests/signals/decorators_test.py +++ b/tests/signals/decorators_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtCore import QObject, Slot, SIGNAL, SLOT +from PySide2.QtCore import QObject, Slot, SIGNAL, SLOT class MyObject(QObject): def __init__(self, parent=None): diff --git a/tests/signals/disconnect_test.py b/tests/signals/disconnect_test.py index d2e7217a..f452d0fc 100644 --- a/tests/signals/disconnect_test.py +++ b/tests/signals/disconnect_test.py @@ -1,5 +1,5 @@ import unittest -from PySide.QtCore import * +from PySide2.QtCore import * from testbinding import TestObject diff --git a/tests/signals/invalid_callback_test.py b/tests/signals/invalid_callback_test.py index 3328bb5c..3b7ba1ff 100644 --- a/tests/signals/invalid_callback_test.py +++ b/tests/signals/invalid_callback_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL class InvalidCallback(unittest.TestCase): '''Test case for passing an invalid callback to QObject.connect''' diff --git a/tests/signals/lambda_gui_test.py b/tests/signals/lambda_gui_test.py index 291f469e..9ae22a13 100644 --- a/tests/signals/lambda_gui_test.py +++ b/tests/signals/lambda_gui_test.py @@ -3,10 +3,10 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL try: - from PySide.QtWidgets import QSpinBox, QPushButton + from PySide2.QtWidgets import QSpinBox, QPushButton hasQtGui = True except ImportError: hasQtGui = False diff --git a/tests/signals/lambda_test.py b/tests/signals/lambda_test.py index dff743c8..6c602b46 100644 --- a/tests/signals/lambda_test.py +++ b/tests/signals/lambda_test.py @@ -5,7 +5,7 @@ import sys import unittest -from PySide.QtCore import QObject, SIGNAL, QProcess +from PySide2.QtCore import QObject, SIGNAL, QProcess from helper import UsesQCoreApplication diff --git a/tests/signals/multiple_connections_gui_test.py b/tests/signals/multiple_connections_gui_test.py index 275d3fac..944d1601 100644 --- a/tests/signals/multiple_connections_gui_test.py +++ b/tests/signals/multiple_connections_gui_test.py @@ -2,10 +2,10 @@ import unittest import random from functools import partial -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL try: - from PySide.QtWidgets import QPushButton, QSpinBox + from PySide2.QtWidgets import QPushButton, QSpinBox hasQtGui = True except ImportError: hasQtGui = False diff --git a/tests/signals/multiple_connections_test.py b/tests/signals/multiple_connections_test.py index 57ea8987..29e9d643 100644 --- a/tests/signals/multiple_connections_test.py +++ b/tests/signals/multiple_connections_test.py @@ -3,7 +3,7 @@ import sys import unittest from functools import partial -from PySide.QtCore import QObject, SIGNAL, QProcess +from PySide2.QtCore import QObject, SIGNAL, QProcess from helper import BasicPySlotCase, UsesQCoreApplication diff --git a/tests/signals/pysignal_test.py b/tests/signals/pysignal_test.py index 33fb383d..86a4c0c3 100644 --- a/tests/signals/pysignal_test.py +++ b/tests/signals/pysignal_test.py @@ -1,9 +1,9 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, SLOT, Qt +from PySide2.QtCore import QObject, SIGNAL, SLOT, Qt try: - from PySide.QtWidgets import QSpinBox, QApplication, QWidget + from PySide2.QtWidgets import QSpinBox, QApplication, QWidget hasQtGui = True except ImportError: hasQtGui = False diff --git a/tests/signals/qobject_destroyed_test.py b/tests/signals/qobject_destroyed_test.py index 01d1b588..61a8cee9 100644 --- a/tests/signals/qobject_destroyed_test.py +++ b/tests/signals/qobject_destroyed_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL class QObjectDestroyed(unittest.TestCase): """Very simple test case for the destroyed() signal of QObject""" diff --git a/tests/signals/qobject_receivers_test.py b/tests/signals/qobject_receivers_test.py index 22ebb81c..9881d2cd 100644 --- a/tests/signals/qobject_receivers_test.py +++ b/tests/signals/qobject_receivers_test.py @@ -3,7 +3,7 @@ ''' Test case for QObject.receivers()''' import unittest -from PySide.QtCore import * +from PySide2.QtCore import * def cute_slot(): pass diff --git a/tests/signals/qobject_sender_test.py b/tests/signals/qobject_sender_test.py index 7ddeab6e..84b2c76b 100644 --- a/tests/signals/qobject_sender_test.py +++ b/tests/signals/qobject_sender_test.py @@ -3,7 +3,7 @@ '''Test cases for QObject.sender()''' import unittest -from PySide.QtCore import * +from PySide2.QtCore import * from helper import UsesQCoreApplication class ExtQTimer(QTimer): diff --git a/tests/signals/ref01_test.py b/tests/signals/ref01_test.py index ba6839ec..61f08bf4 100644 --- a/tests/signals/ref01_test.py +++ b/tests/signals/ref01_test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import QObject, Signal +from PySide2.QtCore import QObject, Signal class BoundAndUnboundSignalsTest(unittest.TestCase): diff --git a/tests/signals/ref02_test.py b/tests/signals/ref02_test.py index 4580f04a..4a443c94 100644 --- a/tests/signals/ref02_test.py +++ b/tests/signals/ref02_test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import QCoreApplication, QTimeLine +from PySide2.QtCore import QCoreApplication, QTimeLine from helper import UsesQCoreApplication class NativeSignalsTest(UsesQCoreApplication): diff --git a/tests/signals/ref03_test.py b/tests/signals/ref03_test.py index f974d743..672a31b3 100644 --- a/tests/signals/ref03_test.py +++ b/tests/signals/ref03_test.py @@ -3,7 +3,7 @@ import unittest from sys import getrefcount -from PySide.QtCore import QObject +from PySide2.QtCore import QObject class DisconnectSignalsTest(unittest.TestCase): diff --git a/tests/signals/ref04_test.py b/tests/signals/ref04_test.py index 88a59f68..e9b4b800 100644 --- a/tests/signals/ref04_test.py +++ b/tests/signals/ref04_test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import QObject, Signal +from PySide2.QtCore import QObject, Signal class ExtQObject(QObject): diff --git a/tests/signals/ref05_test.py b/tests/signals/ref05_test.py index 90766aae..1a660afc 100644 --- a/tests/signals/ref05_test.py +++ b/tests/signals/ref05_test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import QObject, QCoreApplication, QTimeLine, Slot +from PySide2.QtCore import QObject, QCoreApplication, QTimeLine, Slot from helper import UsesQCoreApplication class ExtQObject(QObject): diff --git a/tests/signals/ref06_test.py b/tests/signals/ref06_test.py index ef7098dd..6a47f350 100644 --- a/tests/signals/ref06_test.py +++ b/tests/signals/ref06_test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import QObject, QCoreApplication, QTimeLine, Signal, Slot +from PySide2.QtCore import QObject, QCoreApplication, QTimeLine, Signal, Slot from helper import UsesQCoreApplication class ExtQObject(QObject): diff --git a/tests/signals/segfault_proxyparent_test.py b/tests/signals/segfault_proxyparent_test.py index 791e19cb..89bf104b 100644 --- a/tests/signals/segfault_proxyparent_test.py +++ b/tests/signals/segfault_proxyparent_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL # Description of the problem # After creating an PyObject that inherits from QObject, connecting it, diff --git a/tests/signals/self_connect_test.py b/tests/signals/self_connect_test.py index 61e618da..1a853825 100644 --- a/tests/signals/self_connect_test.py +++ b/tests/signals/self_connect_test.py @@ -4,8 +4,8 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, SLOT -from PySide.QtWidgets import QPushButton, QWidget +from PySide2.QtCore import QObject, SIGNAL, SLOT +from PySide2.QtWidgets import QPushButton, QWidget from helper import UsesQApplication diff --git a/tests/signals/short_circuit_test.py b/tests/signals/short_circuit_test.py index e36420ca..b7a5318e 100644 --- a/tests/signals/short_circuit_test.py +++ b/tests/signals/short_circuit_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, SLOT +from PySide2.QtCore import QObject, SIGNAL, SLOT class Dummy(QObject): """Dummy class used in this test.""" diff --git a/tests/signals/signal2signal_connect_test.py b/tests/signals/signal2signal_connect_test.py index bdc2328b..2b9c0748 100644 --- a/tests/signals/signal2signal_connect_test.py +++ b/tests/signals/signal2signal_connect_test.py @@ -3,7 +3,7 @@ ''' Test case for signal to signal connections.''' import unittest -from PySide.QtCore import * +from PySide2.QtCore import * def cute_slot(): pass diff --git a/tests/signals/signal_autoconnect_test.py b/tests/signals/signal_autoconnect_test.py index 9c2a005c..abfce431 100644 --- a/tests/signals/signal_autoconnect_test.py +++ b/tests/signals/signal_autoconnect_test.py @@ -2,8 +2,8 @@ import unittest -from PySide.QtCore import * -from PySide.QtWidgets import * +from PySide2.QtCore import * +from PySide2.QtWidgets import * class MyObject(QWidget): def __init__(self, parent=None): diff --git a/tests/signals/signal_connectiontype_support_test.py b/tests/signals/signal_connectiontype_support_test.py index d0c35c53..b98c6e69 100644 --- a/tests/signals/signal_connectiontype_support_test.py +++ b/tests/signals/signal_connectiontype_support_test.py @@ -1,7 +1,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, Qt +from PySide2.QtCore import QObject, SIGNAL, Qt class Dummy(QObject): """Dummy class used in this test.""" diff --git a/tests/signals/signal_emission_gui_test.py b/tests/signals/signal_emission_gui_test.py index 79964ebc..a68128eb 100644 --- a/tests/signals/signal_emission_gui_test.py +++ b/tests/signals/signal_emission_gui_test.py @@ -4,10 +4,10 @@ import unittest -from PySide.QtCore import QObject, SIGNAL, SLOT +from PySide2.QtCore import QObject, SIGNAL, SLOT try: - from PySide.QtWidgets import QSpinBox, QPushButton + from PySide2.QtWidgets import QSpinBox, QPushButton hasQtGui = True except ImportError: hasQtGui = False diff --git a/tests/signals/signal_emission_test.py b/tests/signals/signal_emission_test.py index 44bfd902..e69ba9c0 100644 --- a/tests/signals/signal_emission_test.py +++ b/tests/signals/signal_emission_test.py @@ -6,7 +6,7 @@ import sys import unittest import functools -from PySide.QtCore import QObject, SIGNAL, SLOT, QProcess, QTimeLine +from PySide2.QtCore import QObject, SIGNAL, SLOT, QProcess, QTimeLine from helper import BasicPySlotCase, UsesQCoreApplication diff --git a/tests/signals/signal_func_test.py b/tests/signals/signal_func_test.py index 39bd1b29..ee4a4e70 100644 --- a/tests/signals/signal_func_test.py +++ b/tests/signals/signal_func_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtCore import SIGNAL, SLOT +from PySide2.QtCore import SIGNAL, SLOT class SIGNALSLOTTests(unittest.TestCase): '''Test the output of SIGNAL and SLOT.''' diff --git a/tests/signals/signal_manager_refcount_test.py b/tests/signals/signal_manager_refcount_test.py index 191ce9d6..9bddf6bf 100644 --- a/tests/signals/signal_manager_refcount_test.py +++ b/tests/signals/signal_manager_refcount_test.py @@ -2,7 +2,7 @@ from sys import getrefcount import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL class SignalManagerRefCount(unittest.TestCase): """Simple test case to check if the signal_manager is erroneously incrementing the object refcounter""" diff --git a/tests/signals/signal_object_test.py b/tests/signals/signal_object_test.py index 5c4e0607..a6947e4e 100644 --- a/tests/signals/signal_object_test.py +++ b/tests/signals/signal_object_test.py @@ -2,7 +2,7 @@ import unittest -from PySide.QtCore import QTimer, Signal, QObject, Slot, Qt +from PySide2.QtCore import QTimer, Signal, QObject, Slot, Qt from helper import UsesQCoreApplication class MyObject(QTimer): diff --git a/tests/signals/signal_signature_test.py b/tests/signals/signal_signature_test.py index 001f7d6a..58ba6771 100644 --- a/tests/signals/signal_signature_test.py +++ b/tests/signals/signal_signature_test.py @@ -3,7 +3,7 @@ '''Test case for signal signature received by QObject::connectNotify().''' import unittest -from PySide.QtCore import * +from PySide2.QtCore import * from helper import UsesQCoreApplication class Obj(QObject): diff --git a/tests/signals/signal_with_primitive_type_test.py b/tests/signals/signal_with_primitive_type_test.py index 96ff353c..15ffbcd0 100644 --- a/tests/signals/signal_with_primitive_type_test.py +++ b/tests/signals/signal_with_primitive_type_test.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- import unittest -from PySide.QtCore import * +from PySide2.QtCore import * class SignalPrimitiveTypeTest(unittest.TestCase): diff --git a/tests/signals/slot_reference_count_test.py b/tests/signals/slot_reference_count_test.py index 62037f28..fe8b7fce 100644 --- a/tests/signals/slot_reference_count_test.py +++ b/tests/signals/slot_reference_count_test.py @@ -4,7 +4,7 @@ import unittest from sys import getrefcount -from PySide.QtCore import QObject, SIGNAL, SLOT +from PySide2.QtCore import QObject, SIGNAL, SLOT class Dummy(QObject): def dispatch(self): diff --git a/tests/signals/static_metaobject_test.py b/tests/signals/static_metaobject_test.py index 9d62bcdc..c4e1fcaa 100644 --- a/tests/signals/static_metaobject_test.py +++ b/tests/signals/static_metaobject_test.py @@ -4,7 +4,7 @@ import unittest -from PySide.QtCore import QObject, SIGNAL +from PySide2.QtCore import QObject, SIGNAL from helper import UsesQCoreApplication class MyObject(QObject): diff --git a/tests/util/helper/__init__.py b/tests/util/helper/__init__.py index 51283495..2aba99b8 100644 --- a/tests/util/helper/__init__.py +++ b/tests/util/helper/__init__.py @@ -9,7 +9,7 @@ from random import randint from PySide2.QtCore import QCoreApplication, QTimer try: - from PySide.QtWidgets import QApplication + from PySide2.QtWidgets import QApplication except ImportError: has_gui = False else: |