Place the "move up" button at the top of the column as is done in other dialogs.

This commit is contained in:
Charles Haley 2024-12-13 14:08:13 +00:00
parent d52aff95ed
commit ccdee12f39

View File

@ -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)