make group box checkable

This commit is contained in:
dries.k
2022-09-03 13:06:28 +02:00
parent 96cf4f71f0
commit de5b535a15
3 changed files with 20 additions and 27 deletions

View File

@@ -117,25 +117,26 @@ class Ui_Dialog(object):
self.pb_export.setObjectName("pb_export")
self.horizontalLayout_2.addWidget(self.pb_export)
self.verticalLayout.addWidget(self.groupBox)
self.groupBox_2 = QtWidgets.QGroupBox(self.tab_advanced)
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
self.groupbox_image_popup = QtWidgets.QGroupBox(self.tab_advanced)
self.groupbox_image_popup.setCheckable(True)
self.groupbox_image_popup.setObjectName("groupbox_image_popup")
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupbox_image_popup)
self.gridLayout_2.setObjectName("gridLayout_2")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label = QtWidgets.QLabel(self.groupBox_2)
self.label = QtWidgets.QLabel(self.groupbox_image_popup)
self.label.setObjectName("label")
self.horizontalLayout_4.addWidget(self.label)
self.spin_popup_w = QtWidgets.QSpinBox(self.groupBox_2)
self.spin_popup_w = QtWidgets.QSpinBox(self.groupbox_image_popup)
self.spin_popup_w.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.spin_popup_w.setMinimum(100)
self.spin_popup_w.setMaximum(10000)
self.spin_popup_w.setObjectName("spin_popup_w")
self.horizontalLayout_4.addWidget(self.spin_popup_w)
self.label_2 = QtWidgets.QLabel(self.groupBox_2)
self.label_2 = QtWidgets.QLabel(self.groupbox_image_popup)
self.label_2.setObjectName("label_2")
self.horizontalLayout_4.addWidget(self.label_2)
self.spin_popup_h = QtWidgets.QSpinBox(self.groupBox_2)
self.spin_popup_h = QtWidgets.QSpinBox(self.groupbox_image_popup)
self.spin_popup_h.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.spin_popup_h.setMinimum(100)
self.spin_popup_h.setMaximum(10000)
@@ -143,11 +144,8 @@ class Ui_Dialog(object):
self.horizontalLayout_4.addWidget(self.spin_popup_h)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_4.addItem(spacerItem4)
self.gridLayout_2.addLayout(self.horizontalLayout_4, 1, 0, 1, 1)
self.cb_image_popup = QtWidgets.QCheckBox(self.groupBox_2)
self.cb_image_popup.setObjectName("cb_image_popup")
self.gridLayout_2.addWidget(self.cb_image_popup, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_2)
self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupbox_image_popup)
self.groupBox_logging = QtWidgets.QGroupBox(self.tab_advanced)
self.groupBox_logging.setObjectName("groupBox_logging")
self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_logging)
@@ -204,14 +202,13 @@ class Ui_Dialog(object):
self.pb_reset.setText(_translate("Dialog", "Reset"))
self.pb_import.setText(_translate("Dialog", "Import"))
self.pb_export.setText(_translate("Dialog", "Export"))
self.groupBox_2.setTitle(_translate("Dialog", "Image pop-up"))
self.groupbox_image_popup.setTitle(_translate("Dialog", "Image pop-up for URLs"))
self.label.setToolTip(_translate("Dialog", "Maximum pop-up width"))
self.label.setText(_translate("Dialog", "Width"))
self.spin_popup_w.setToolTip(_translate("Dialog", "Maximum pop-up width"))
self.label_2.setToolTip(_translate("Dialog", "Maximum pop-up height"))
self.label_2.setText(_translate("Dialog", "Height"))
self.spin_popup_h.setToolTip(_translate("Dialog", "Maximum pop-up height"))
self.cb_image_popup.setText(_translate("Dialog", "Show an image pop-up when hovering over image URLs"))
self.groupBox_logging.setTitle(_translate("Dialog", "Logging"))
self.pb_open_log.setToolTip(_translate("Dialog", "Open logfile"))
self.pb_open_log.setText(_translate("Dialog", "..."))