Fix #1885001 [[Enhancement] Center buttons in the category editors](https://bugs.launchpad.net/calibre/+bug/1885001)

This commit is contained in:
Kovid Goyal 2020-06-25 09:34:36 +05:30
parent 8065624ded
commit e949fe1fee
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 54 additions and 1 deletions

View File

@ -140,6 +140,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
QDialog.__init__(self, window)
Ui_TagListEditor.__init__(self)
self.setupUi(self)
self.verticalLayout_2.setAlignment(Qt.AlignCenter)
self.search_box.setMinimumContentsLength(25)
# Put the category name into the title bar

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>397</width>
<width>676</width>
<height>335</height>
</rect>
</property>
@ -125,6 +125,19 @@
</item>
<item row="2" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="delete_button">
<property name="toolTip">
@ -148,6 +161,19 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="rename_button">
<property name="toolTip">
@ -171,6 +197,19 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="undo_button">
<property name="toolTip">
@ -194,6 +233,19 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="2" column="1" colspan="4">