summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-05-12 13:20:40 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-01 16:29:15 +0200
commitde15836dbf5007092c19bc9ab15ca3d1a36901ad (patch)
tree38e4b642d31bb633f2efa3b316cfcd1dfbaca7e3 /tests/auto/tools
parentb42e2d70fbda5afb462b869583b925ad5f1a5480 (diff)
uic: No longer generate star imports in Python
Use class WriteIncludesBase and store classes encountered in a per-module hash (Qt/custom widgets). Write out only the required classes. Add --star-import as a fallback should the change cause issues. Task-number: PYSIDE-1404 Change-Id: Ic50e26758ddd0f2f8aebbce470d32a36fb09a2c4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/uic/baseline/config.ui.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/auto/tools/uic/baseline/config.ui.py b/tests/auto/tools/uic/baseline/config.ui.py
index d697ee622b..f6b7eb92aa 100644
--- a/tests/auto/tools/uic/baseline/config.ui.py
+++ b/tests/auto/tools/uic/baseline/config.ui.py
@@ -36,13 +36,20 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
-from PySide6.QtCore import * # type: ignore
-from PySide6.QtGui import * # type: ignore
-from PySide6.QtWidgets import * # type: ignore
+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, QDialog,
+ QGridLayout, QGroupBox, QHBoxLayout, QLabel,
+ QPushButton, QRadioButton, QSizePolicy, QSlider,
+ QSpacerItem, QSpinBox, QVBoxLayout)
from gammaview import GammaView
-
class Ui_Config(object):
def setupUi(self, Config):
if not Config.objectName():