Fri, 07 Jun 2024 10:05:06 +0200
Changed code structure and install script to include the Ui_*.py files in the code repository and do not compile *.ui files at installation time anymore. This is to cope with a backward incompatible change of Qt 6.7.0.
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/WebBrowser/AdBlock/AdBlockDialog.ui' # # Created by: PyQt6 UI code generator 6.7.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets class Ui_AdBlockDialog(object): def setupUi(self, AdBlockDialog): AdBlockDialog.setObjectName("AdBlockDialog") AdBlockDialog.resize(650, 600) AdBlockDialog.setSizeGripEnabled(True) self.verticalLayout_2 = QtWidgets.QVBoxLayout(AdBlockDialog) self.verticalLayout_2.setObjectName("verticalLayout_2") self.adBlockGroup = QtWidgets.QGroupBox(parent=AdBlockDialog) self.adBlockGroup.setCheckable(True) self.adBlockGroup.setObjectName("adBlockGroup") self.verticalLayout = QtWidgets.QVBoxLayout(self.adBlockGroup) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setHorizontalSpacing(20) self.gridLayout.setObjectName("gridLayout") self.iconLabel = QtWidgets.QLabel(parent=self.adBlockGroup) self.iconLabel.setMinimumSize(QtCore.QSize(48, 48)) self.iconLabel.setText("Icon") self.iconLabel.setObjectName("iconLabel") self.gridLayout.addWidget(self.iconLabel, 0, 0, 2, 1) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout.addItem(spacerItem, 0, 1, 1, 1) self.searchEdit = QtWidgets.QLineEdit(parent=self.adBlockGroup) self.searchEdit.setClearButtonEnabled(True) self.searchEdit.setObjectName("searchEdit") self.gridLayout.addWidget(self.searchEdit, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.subscriptionsTabWidget = QtWidgets.QTabWidget(parent=self.adBlockGroup) self.subscriptionsTabWidget.setDocumentMode(True) self.subscriptionsTabWidget.setObjectName("subscriptionsTabWidget") self.verticalLayout.addWidget(self.subscriptionsTabWidget) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.actionButton = QtWidgets.QToolButton(parent=self.adBlockGroup) self.actionButton.setObjectName("actionButton") self.horizontalLayout.addWidget(self.actionButton) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.label = QtWidgets.QLabel(parent=self.adBlockGroup) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.updateSpinBox = QtWidgets.QSpinBox(parent=self.adBlockGroup) self.updateSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.updateSpinBox.setSuffix("") self.updateSpinBox.setMinimum(1) self.updateSpinBox.setMaximum(14) self.updateSpinBox.setProperty("value", 7) self.updateSpinBox.setObjectName("updateSpinBox") self.horizontalLayout.addWidget(self.updateSpinBox) self.verticalLayout.addLayout(self.horizontalLayout) self.useLimitedEasyListCheckBox = QtWidgets.QCheckBox(parent=self.adBlockGroup) self.useLimitedEasyListCheckBox.setToolTip("") self.useLimitedEasyListCheckBox.setObjectName("useLimitedEasyListCheckBox") self.verticalLayout.addWidget(self.useLimitedEasyListCheckBox) self.verticalLayout_2.addWidget(self.adBlockGroup) self.buttonBox = QtWidgets.QDialogButtonBox(parent=AdBlockDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) self.buttonBox.setObjectName("buttonBox") self.verticalLayout_2.addWidget(self.buttonBox) self.retranslateUi(AdBlockDialog) self.buttonBox.accepted.connect(AdBlockDialog.accept) # type: ignore self.buttonBox.rejected.connect(AdBlockDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(AdBlockDialog) AdBlockDialog.setTabOrder(self.adBlockGroup, self.searchEdit) AdBlockDialog.setTabOrder(self.searchEdit, self.subscriptionsTabWidget) AdBlockDialog.setTabOrder(self.subscriptionsTabWidget, self.actionButton) AdBlockDialog.setTabOrder(self.actionButton, self.updateSpinBox) AdBlockDialog.setTabOrder(self.updateSpinBox, self.buttonBox) def retranslateUi(self, AdBlockDialog): _translate = QtCore.QCoreApplication.translate AdBlockDialog.setWindowTitle(_translate("AdBlockDialog", "AdBlock Configuration")) self.adBlockGroup.setTitle(_translate("AdBlockDialog", "Enable AdBlock")) self.searchEdit.setToolTip(_translate("AdBlockDialog", "Enter search term for subscriptions and rules")) self.searchEdit.setPlaceholderText(_translate("AdBlockDialog", "Search...")) self.actionButton.setText(_translate("AdBlockDialog", "Actions")) self.label.setText(_translate("AdBlockDialog", "Default Update Period (days):")) self.updateSpinBox.setToolTip(_translate("AdBlockDialog", "Enter the update period (1 to 14 days)")) self.useLimitedEasyListCheckBox.setText(_translate("AdBlockDialog", "Use only essential part of EasyList (for performance reasons)"))