aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sql/books
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 16:11:52 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 16:12:04 +0000
commit25180730194bec25f915f32ab846ea583fb1493f (patch)
tree9a73e0336ecf21e085d99d6a651c5547b9eb99f8 /examples/sql/books
parent6e3e7b9ca0548430aaa5e2555d6e02c64625fa3f (diff)
Rename PySide2 to PySide6
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/sql/books')
-rw-r--r--examples/sql/books/bookdelegate.py8
-rw-r--r--examples/sql/books/bookwindow.py8
-rw-r--r--examples/sql/books/createdb.py2
-rw-r--r--examples/sql/books/main.py2
-rw-r--r--examples/sql/books/rc_books.py2
-rw-r--r--examples/sql/books/ui_bookwindow.py6
6 files changed, 14 insertions, 14 deletions
diff --git a/examples/sql/books/bookdelegate.py b/examples/sql/books/bookdelegate.py
index f7e219ad6..d44abb5b1 100644
--- a/examples/sql/books/bookdelegate.py
+++ b/examples/sql/books/bookdelegate.py
@@ -39,10 +39,10 @@
#############################################################################
import copy
-from PySide2.QtSql import QSqlRelationalDelegate
-from PySide2.QtWidgets import QSpinBox, QStyle
-from PySide2.QtGui import QPixmap, QPalette
-from PySide2.QtCore import QEvent, QSize, Qt
+from PySide6.QtSql import QSqlRelationalDelegate
+from PySide6.QtWidgets import QSpinBox, QStyle
+from PySide6.QtGui import QPixmap, QPalette
+from PySide6.QtCore import QEvent, QSize, Qt
class BookDelegate(QSqlRelationalDelegate):
diff --git a/examples/sql/books/bookwindow.py b/examples/sql/books/bookwindow.py
index 59cd65840..831a3cd63 100644
--- a/examples/sql/books/bookwindow.py
+++ b/examples/sql/books/bookwindow.py
@@ -38,11 +38,11 @@
##
#############################################################################
-from PySide2.QtWidgets import (QAbstractItemView, QDataWidgetMapper,
+from PySide6.QtWidgets import (QAbstractItemView, QDataWidgetMapper,
QHeaderView, QMainWindow, QMessageBox)
-from PySide2.QtGui import QKeySequence
-from PySide2.QtSql import QSqlRelation, QSqlRelationalTableModel, QSqlTableModel
-from PySide2.QtCore import Qt, Slot
+from PySide6.QtGui import QKeySequence
+from PySide6.QtSql import QSqlRelation, QSqlRelationalTableModel, QSqlTableModel
+from PySide6.QtCore import Qt, Slot
import createdb
from ui_bookwindow import Ui_BookWindow
from bookdelegate import BookDelegate
diff --git a/examples/sql/books/createdb.py b/examples/sql/books/createdb.py
index f8739b4d0..524ee0daf 100644
--- a/examples/sql/books/createdb.py
+++ b/examples/sql/books/createdb.py
@@ -38,7 +38,7 @@
##
#############################################################################
-from PySide2.QtSql import QSqlDatabase, QSqlQuery
+from PySide6.QtSql import QSqlDatabase, QSqlQuery
from datetime import date
def add_book(q, title, year, authorId, genreId, rating):
diff --git a/examples/sql/books/main.py b/examples/sql/books/main.py
index 50d2c0d6b..e957869ac 100644
--- a/examples/sql/books/main.py
+++ b/examples/sql/books/main.py
@@ -39,7 +39,7 @@
#############################################################################
import sys
-from PySide2.QtWidgets import QApplication
+from PySide6.QtWidgets import QApplication
from bookwindow import BookWindow
import rc_books
diff --git a/examples/sql/books/rc_books.py b/examples/sql/books/rc_books.py
index 6f2cbbeb6..b5d1d53bb 100644
--- a/examples/sql/books/rc_books.py
+++ b/examples/sql/books/rc_books.py
@@ -3,7 +3,7 @@
# Created by: The Resource Compiler for Qt version 5.14.0
# WARNING! All changes made in this file will be lost!
-from PySide2 import QtCore
+from PySide6 import QtCore
qt_resource_data = b"\
\x00\x00\x03\x0e\
diff --git a/examples/sql/books/ui_bookwindow.py b/examples/sql/books/ui_bookwindow.py
index dc532744b..597b339cd 100644
--- a/examples/sql/books/ui_bookwindow.py
+++ b/examples/sql/books/ui_bookwindow.py
@@ -8,12 +8,12 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
-from PySide2.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
+from PySide6.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
QRect, QSize, QUrl, Qt)
-from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QFont,
+from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QFont,
QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap,
QRadialGradient)
-from PySide2.QtWidgets import *
+from PySide6.QtWidgets import *
class Ui_BookWindow(object):
def setupUi(self, BookWindow):