From 2511282c895d048f7eadb633219dea6f4d4d5b14 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 12 Jan 2022 15:43:18 +0100 Subject: Regenerate the example ui files Remove some star imports. Pick-to: 6.2 Task-number: PYSIDE-1773 Change-Id: I42e3034ae91bdc5779b6ed632fe4f5d234f060b0 Reviewed-by: Cristian Maureira-Fredes --- examples/bluetooth/btscanner/ui_device.py | 5 +++-- examples/bluetooth/btscanner/ui_service.py | 5 +++-- examples/charts/chartthemes/ui_themewidget.py | 16 +++++++++++----- examples/corelib/ipc/sharedmemory/ui_dialog.py | 4 ++-- examples/sql/books/ui_bookwindow.py | 22 ++++++++++++++-------- examples/webchannel/standalone/ui_dialog.py | 19 +++++++++++-------- .../markdowneditor/ui_mainwindow.py | 2 +- examples/widgets/animation/easing/ui_form.py | 17 ++++++++++++----- 8 files changed, 57 insertions(+), 33 deletions(-) (limited to 'examples') diff --git a/examples/bluetooth/btscanner/ui_device.py b/examples/bluetooth/btscanner/ui_device.py index f351854d7..0740afa7a 100644 --- a/examples/bluetooth/btscanner/ui_device.py +++ b/examples/bluetooth/btscanner/ui_device.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'device.ui' ## -## Created by: Qt User Interface Compiler version 6.2.0 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -17,7 +17,7 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QCheckBox, QDialog, QGroupBox, QHBoxLayout, QListWidget, QListWidgetItem, QPushButton, - QSizePolicy, QVBoxLayout) + QSizePolicy, QVBoxLayout, QWidget) class Ui_DeviceDiscovery(object): def setupUi(self, DeviceDiscovery): @@ -87,3 +87,4 @@ class Ui_DeviceDiscovery(object): self.clear.setText(QCoreApplication.translate("DeviceDiscovery", u"Clear", None)) self.quit.setText(QCoreApplication.translate("DeviceDiscovery", u"Quit", None)) # retranslateUi + diff --git a/examples/bluetooth/btscanner/ui_service.py b/examples/bluetooth/btscanner/ui_service.py index c5a37a933..fc1f45fef 100644 --- a/examples/bluetooth/btscanner/ui_service.py +++ b/examples/bluetooth/btscanner/ui_service.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'service.ui' ## -## Created by: Qt User Interface Compiler version 6.2.1 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -17,7 +17,7 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox, QLabel, QListWidget, QListWidgetItem, QSizePolicy, - QVBoxLayout) + QVBoxLayout, QWidget) class Ui_ServiceDiscovery(object): def setupUi(self, ServiceDiscovery): @@ -54,3 +54,4 @@ class Ui_ServiceDiscovery(object): ServiceDiscovery.setWindowTitle(QCoreApplication.translate("ServiceDiscovery", u"Available Services", None)) self.status.setText(QCoreApplication.translate("ServiceDiscovery", u"Querying...", None)) # retranslateUi + diff --git a/examples/charts/chartthemes/ui_themewidget.py b/examples/charts/chartthemes/ui_themewidget.py index e6e937dae..231813a67 100644 --- a/examples/charts/chartthemes/ui_themewidget.py +++ b/examples/charts/chartthemes/ui_themewidget.py @@ -3,15 +3,21 @@ ################################################################################ ## Form generated from reading UI file 'themewidget.ui' ## -## Created by: Qt User Interface Compiler version 6.2.0 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import * -from PySide6.QtGui import * -from PySide6.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 (QApplication, QCheckBox, QComboBox, QGridLayout, + QHBoxLayout, QLabel, QSizePolicy, QSpacerItem, + QWidget) class Ui_ThemeWidgetForm(object): def setupUi(self, ThemeWidgetForm): diff --git a/examples/corelib/ipc/sharedmemory/ui_dialog.py b/examples/corelib/ipc/sharedmemory/ui_dialog.py index 891c7b847..035b60d68 100644 --- a/examples/corelib/ipc/sharedmemory/ui_dialog.py +++ b/examples/corelib/ipc/sharedmemory/ui_dialog.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'dialog.ui' ## -## Created by: Qt User Interface Compiler version 6.2.0 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -16,7 +16,7 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QDialog, QGridLayout, QLabel, - QPushButton, QSizePolicy) + QPushButton, QSizePolicy, QWidget) class Ui_Dialog(object): def setupUi(self, Dialog): diff --git a/examples/sql/books/ui_bookwindow.py b/examples/sql/books/ui_bookwindow.py index 597b339cd..175891577 100644 --- a/examples/sql/books/ui_bookwindow.py +++ b/examples/sql/books/ui_bookwindow.py @@ -3,21 +3,26 @@ ################################################################################ ## 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.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint, - QRect, QSize, QUrl, Qt) -from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QFont, - QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap, - QRadialGradient) -from PySide6.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) @@ -127,3 +132,4 @@ class Ui_BookWindow(object): self.yearEdit.setPrefix("") self.label.setText(QCoreApplication.translate("BookWindow", u"Rating:", None)) # retranslateUi + diff --git a/examples/webchannel/standalone/ui_dialog.py b/examples/webchannel/standalone/ui_dialog.py index 0cbcd96e2..866d2a2e4 100644 --- a/examples/webchannel/standalone/ui_dialog.py +++ b/examples/webchannel/standalone/ui_dialog.py @@ -3,18 +3,20 @@ ################################################################################ ## Form generated from reading UI file 'dialog.ui' ## -## Created by: Qt User Interface Compiler version 5.14.1 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint, - QRect, QSize, QUrl, Qt) -from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, - QFontDatabase, QIcon, QLinearGradient, QPalette, QPainter, QPixmap, - QRadialGradient) -from PySide6.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 (QApplication, QDialog, QGridLayout, QLineEdit, + QPlainTextEdit, QPushButton, QSizePolicy, QWidget) class Ui_Dialog(object): def setupUi(self, Dialog): @@ -41,6 +43,7 @@ class Ui_Dialog(object): self.gridLayout.addWidget(self.output, 0, 0, 1, 2) + self.retranslateUi(Dialog) QMetaObject.connectSlotsByName(Dialog) diff --git a/examples/webenginewidgets/markdowneditor/ui_mainwindow.py b/examples/webenginewidgets/markdowneditor/ui_mainwindow.py index 305108324..0705ebfda 100644 --- a/examples/webenginewidgets/markdowneditor/ui_mainwindow.py +++ b/examples/webenginewidgets/markdowneditor/ui_mainwindow.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'mainwindow.ui' ## -## Created by: Qt User Interface Compiler version 6.2.0 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ diff --git a/examples/widgets/animation/easing/ui_form.py b/examples/widgets/animation/easing/ui_form.py index d7e79ebd2..07bfa8fb3 100644 --- a/examples/widgets/animation/easing/ui_form.py +++ b/examples/widgets/animation/easing/ui_form.py @@ -3,15 +3,22 @@ ################################################################################ ## Form generated from reading UI file 'form.ui' ## -## Created by: Qt User Interface Compiler version 6.2.0 +## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import * -from PySide6.QtGui import * -from PySide6.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 (QApplication, QButtonGroup, QDoubleSpinBox, QFormLayout, + QGraphicsView, QGridLayout, QGroupBox, QLabel, + QListView, QListWidget, QListWidgetItem, QRadioButton, + QSizePolicy, QSpacerItem, QVBoxLayout, QWidget) class Ui_Form(object): def setupUi(self, Form): -- cgit v1.2.3