aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sql/books/ui_bookwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/books/ui_bookwindow.py')
-rw-r--r--examples/sql/books/ui_bookwindow.py58
1 files changed, 32 insertions, 26 deletions
diff --git a/examples/sql/books/ui_bookwindow.py b/examples/sql/books/ui_bookwindow.py
index 5eb412d92..52795217e 100644
--- a/examples/sql/books/ui_bookwindow.py
+++ b/examples/sql/books/ui_bookwindow.py
@@ -3,82 +3,87 @@
################################################################################
## Form generated from reading UI file 'bookwindow.ui'
##
-## Created by: Qt User Interface Compiler version 5.14.0
+## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
-from PySide2.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
- QRect, QSize, QUrl, Qt)
-from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QFont,
- QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap,
- QRadialGradient)
-from PySide2.QtWidgets import *
+from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
+ QMetaObject, QObject, QPoint, QRect,
+ QSize, QTime, QUrl, Qt)
+from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
+ QFont, QFontDatabase, QGradient, QIcon,
+ QImage, QKeySequence, QLinearGradient, QPainter,
+ QPalette, QPixmap, QRadialGradient, QTransform)
+from PySide6.QtWidgets import (QAbstractItemView, QApplication, QComboBox, QFormLayout,
+ QGroupBox, QHeaderView, QLabel, QLineEdit,
+ QMainWindow, QSizePolicy, QSpinBox, QTableView,
+ QVBoxLayout, QWidget)
class Ui_BookWindow(object):
def setupUi(self, BookWindow):
- if BookWindow.objectName():
+ if not BookWindow.objectName():
BookWindow.setObjectName(u"BookWindow")
BookWindow.resize(601, 420)
self.centralWidget = QWidget(BookWindow)
self.centralWidget.setObjectName(u"centralWidget")
- self.vboxLayout = QVBoxLayout(self.centralWidget);
+ self.vboxLayout = QVBoxLayout(self.centralWidget)
self.vboxLayout.setSpacing(6)
self.vboxLayout.setObjectName(u"vboxLayout")
- self.vboxLayout.setContentsMargins(9, 9, 9, 9);
+ self.vboxLayout.setContentsMargins(9, 9, 9, 9)
self.groupBox = QGroupBox(self.centralWidget)
self.groupBox.setObjectName(u"groupBox")
- self.vboxLayout1 = QVBoxLayout(self.groupBox);
+ self.vboxLayout1 = QVBoxLayout(self.groupBox)
self.vboxLayout1.setSpacing(6)
self.vboxLayout1.setObjectName(u"vboxLayout1")
- self.vboxLayout1.setContentsMargins(9, 9, 9, 9);
+ self.vboxLayout1.setContentsMargins(9, 9, 9, 9)
self.bookTable = QTableView(self.groupBox)
self.bookTable.setObjectName(u"bookTable")
self.bookTable.setSelectionBehavior(QAbstractItemView.SelectRows)
- self.vboxLayout1.addWidget(self.bookTable);
+ self.vboxLayout1.addWidget(self.bookTable)
self.groupBox_2 = QGroupBox(self.groupBox)
self.groupBox_2.setObjectName(u"groupBox_2")
- self.formLayout = QFormLayout(self.groupBox_2);
+ self.formLayout = QFormLayout(self.groupBox_2)
self.formLayout.setObjectName(u"formLayout")
self.label_5 = QLabel(self.groupBox_2)
self.label_5.setObjectName(u"label_5")
- self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label_5);
+ self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label_5)
self.titleEdit = QLineEdit(self.groupBox_2)
self.titleEdit.setObjectName(u"titleEdit")
self.titleEdit.setEnabled(True)
- self.formLayout.setWidget(0, QFormLayout.FieldRole, self.titleEdit);
+ self.formLayout.setWidget(0, QFormLayout.FieldRole, self.titleEdit)
self.label_2 = QLabel(self.groupBox_2)
self.label_2.setObjectName(u"label_2")
- self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_2);
+ self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_2)
self.authorEdit = QComboBox(self.groupBox_2)
self.authorEdit.setObjectName(u"authorEdit")
self.authorEdit.setEnabled(True)
- self.formLayout.setWidget(1, QFormLayout.FieldRole, self.authorEdit);
+ self.formLayout.setWidget(1, QFormLayout.FieldRole, self.authorEdit)
self.label_3 = QLabel(self.groupBox_2)
self.label_3.setObjectName(u"label_3")
- self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_3);
+ self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_3)
self.genreEdit = QComboBox(self.groupBox_2)
self.genreEdit.setObjectName(u"genreEdit")
self.genreEdit.setEnabled(True)
- self.formLayout.setWidget(2, QFormLayout.FieldRole, self.genreEdit);
+ self.formLayout.setWidget(2, QFormLayout.FieldRole, self.genreEdit)
self.label_4 = QLabel(self.groupBox_2)
self.label_4.setObjectName(u"label_4")
- self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_4);
+ self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_4)
self.yearEdit = QSpinBox(self.groupBox_2)
self.yearEdit.setObjectName(u"yearEdit")
@@ -86,24 +91,24 @@ class Ui_BookWindow(object):
self.yearEdit.setMinimum(-1000)
self.yearEdit.setMaximum(2100)
- self.formLayout.setWidget(3, QFormLayout.FieldRole, self.yearEdit);
+ self.formLayout.setWidget(3, QFormLayout.FieldRole, self.yearEdit)
self.label = QLabel(self.groupBox_2)
self.label.setObjectName(u"label")
- self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label);
+ self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label)
self.ratingEdit = QSpinBox(self.groupBox_2)
self.ratingEdit.setObjectName(u"ratingEdit")
self.ratingEdit.setMaximum(5)
- self.formLayout.setWidget(4, QFormLayout.FieldRole, self.ratingEdit);
+ self.formLayout.setWidget(4, QFormLayout.FieldRole, self.ratingEdit)
- self.vboxLayout1.addWidget(self.groupBox_2);
+ self.vboxLayout1.addWidget(self.groupBox_2)
- self.vboxLayout.addWidget(self.groupBox);
+ self.vboxLayout.addWidget(self.groupBox)
BookWindow.setCentralWidget(self.centralWidget)
QWidget.setTabOrder(self.bookTable, self.titleEdit)
@@ -127,3 +132,4 @@ class Ui_BookWindow(object):
self.yearEdit.setPrefix("")
self.label.setText(QCoreApplication.translate("BookWindow", u"<b>Rating:</b>", None))
# retranslateUi
+