mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Place the "move up" button at the top of the column as is done in other dialogs.
This commit is contained in:
parent
d52aff95ed
commit
ccdee12f39
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user