From ccdee12f39bcd16881d8f035dac1862f1cf255fe Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 13 Dec 2024 14:08:13 +0000 Subject: [PATCH] Place the "move up" button at the top of the column as is done in other dialogs. --- src/calibre/gui2/dialogs/enum_values_edit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/dialogs/enum_values_edit.py b/src/calibre/gui2/dialogs/enum_values_edit.py index 503679f2ac..552b23cd95 100644 --- a/src/calibre/gui2/dialogs/enum_values_edit.py +++ b/src/calibre/gui2/dialogs/enum_values_edit.py @@ -50,6 +50,8 @@ class EnumValuesEdit(QDialog): bbox = QVBoxLayout() bbox.addStretch(10) + self.move_up_button= QToolButton() + self.move_up_button.setIcon(QIcon.ic('arrow-up.png')) self.del_button = QToolButton() self.del_button.setIcon(QIcon.ic('trash.png')) self.del_button.setToolTip(_('Remove the currently selected value. The ' @@ -57,16 +59,14 @@ class EnumValuesEdit(QDialog): self.ins_button = QToolButton() self.ins_button.setIcon(QIcon.ic('plus.png')) self.ins_button.setToolTip(_('Add a new permissible value')) - self.move_up_button= QToolButton() - self.move_up_button.setIcon(QIcon.ic('arrow-up.png')) self.move_down_button= QToolButton() self.move_down_button.setIcon(QIcon.ic('arrow-down.png')) + bbox.addWidget(self.move_up_button) + bbox.addStretch(1) bbox.addWidget(self.del_button) bbox.addStretch(1) bbox.addWidget(self.ins_button) bbox.addStretch(1) - bbox.addWidget(self.move_up_button) - bbox.addStretch(1) bbox.addWidget(self.move_down_button) bbox.addStretch(10) l.addItem(bbox, 0, 0)