diff --git a/picard/ui/ui_options_maintenance.py b/picard/ui/ui_options_maintenance.py index 4d73827099..d8b5956ed6 100644 --- a/picard/ui/ui_options_maintenance.py +++ b/picard/ui/ui_options_maintenance.py @@ -39,6 +39,23 @@ def setupUi(self, MaintenanceOptionsPage): self.open_folder_button.setObjectName("open_folder_button") self.horizontalLayout_3.addWidget(self.open_folder_button) self.vboxlayout.addLayout(self.horizontalLayout_3) + self.label_2 = QtWidgets.QLabel(parent=MaintenanceOptionsPage) + self.label_2.setObjectName("label_2") + self.vboxlayout.addWidget(self.label_2) + self.horizontalLayout_6 = QtWidgets.QHBoxLayout() + self.horizontalLayout_6.setObjectName("horizontalLayout_6") + self.autobackup_dir = QtWidgets.QLineEdit(parent=MaintenanceOptionsPage) + self.autobackup_dir.setObjectName("autobackup_dir") + self.horizontalLayout_6.addWidget(self.autobackup_dir) + self.browse_autobackup_dir = QtWidgets.QToolButton(parent=MaintenanceOptionsPage) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.browse_autobackup_dir.sizePolicy().hasHeightForWidth()) + self.browse_autobackup_dir.setSizePolicy(sizePolicy) + self.browse_autobackup_dir.setObjectName("browse_autobackup_dir") + self.horizontalLayout_6.addWidget(self.browse_autobackup_dir) + self.vboxlayout.addLayout(self.horizontalLayout_6) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setContentsMargins(-1, -1, -1, 0) self.horizontalLayout.setObjectName("horizontalLayout") @@ -61,23 +78,11 @@ def setupUi(self, MaintenanceOptionsPage): self.save_backup_button.setObjectName("save_backup_button") self.horizontalLayout.addWidget(self.save_backup_button) self.vboxlayout.addLayout(self.horizontalLayout) - self.label_2 = QtWidgets.QLabel(parent=MaintenanceOptionsPage) - self.label_2.setObjectName("label_2") - self.vboxlayout.addWidget(self.label_2) - self.horizontalLayout_6 = QtWidgets.QHBoxLayout() - self.horizontalLayout_6.setObjectName("horizontalLayout_6") - self.autobackup_dir = QtWidgets.QLineEdit(parent=MaintenanceOptionsPage) - self.autobackup_dir.setObjectName("autobackup_dir") - self.horizontalLayout_6.addWidget(self.autobackup_dir) - self.browse_autobackup_dir = QtWidgets.QToolButton(parent=MaintenanceOptionsPage) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.browse_autobackup_dir.sizePolicy().hasHeightForWidth()) - self.browse_autobackup_dir.setSizePolicy(sizePolicy) - self.browse_autobackup_dir.setObjectName("browse_autobackup_dir") - self.horizontalLayout_6.addWidget(self.browse_autobackup_dir) - self.vboxlayout.addLayout(self.horizontalLayout_6) + self.line_2 = QtWidgets.QFrame(parent=MaintenanceOptionsPage) + self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line_2.setObjectName("line_2") + self.vboxlayout.addWidget(self.line_2) self.option_counts = QtWidgets.QLabel(parent=MaintenanceOptionsPage) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) sizePolicy.setHorizontalStretch(0) @@ -121,11 +126,11 @@ def setupUi(self, MaintenanceOptionsPage): QtCore.QMetaObject.connectSlotsByName(MaintenanceOptionsPage) def retranslateUi(self, MaintenanceOptionsPage): - self.label.setText(_("Configuration File:")) - self.open_folder_button.setText(_("Open folder")) - self.load_backup_button.setText(_("Load Backup")) - self.save_backup_button.setText(_("Save Backup")) - self.label_2.setText(_("Automatic backups directory")) + self.label.setText(_("Configuration file:")) + self.open_folder_button.setText(_("Open folder…")) + self.label_2.setText(_("Automatic configuration backups directory:")) self.browse_autobackup_dir.setText(_("Browse…")) + self.load_backup_button.setText(_("Load backup…")) + self.save_backup_button.setText(_("Save backup…")) self.enable_cleanup.setText(_("Remove selected options")) self.select_all.setText(_("Select all")) diff --git a/ui/options_maintenance.ui b/ui/options_maintenance.ui index 86b59f42f1..34a44ef546 100644 --- a/ui/options_maintenance.ui +++ b/ui/options_maintenance.ui @@ -14,7 +14,7 @@ - Configuration File: + Configuration file: @@ -39,7 +39,34 @@ - Open folder + Open folder… + + + + + + + + + Automatic configuration backups directory: + + + + + + + + + + + + + 0 + 0 + + + + Browse… @@ -72,7 +99,7 @@ - Load Backup + Load backup… @@ -85,39 +112,19 @@ - Save Backup + Save backup… - - - Automatic backups directory + + + Qt::Horizontal - - - - - - - - - - 0 - 0 - - - - Browse… - - - - -