From e949fe1fee3b245efd82816e6d29619a8d299dcc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2020 09:34:36 +0530 Subject: [PATCH] Fix #1885001 [[Enhancement] Center buttons in the category editors](https://bugs.launchpad.net/calibre/+bug/1885001) --- src/calibre/gui2/dialogs/tag_list_editor.py | 1 + src/calibre/gui2/dialogs/tag_list_editor.ui | 54 ++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/tag_list_editor.py b/src/calibre/gui2/dialogs/tag_list_editor.py index 4951a6245b..9d1c99416e 100644 --- a/src/calibre/gui2/dialogs/tag_list_editor.py +++ b/src/calibre/gui2/dialogs/tag_list_editor.py @@ -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 diff --git a/src/calibre/gui2/dialogs/tag_list_editor.ui b/src/calibre/gui2/dialogs/tag_list_editor.ui index 1ee9c02121..2c178ca048 100644 --- a/src/calibre/gui2/dialogs/tag_list_editor.ui +++ b/src/calibre/gui2/dialogs/tag_list_editor.ui @@ -6,7 +6,7 @@ 0 0 - 397 + 676 335 @@ -125,6 +125,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -148,6 +161,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -171,6 +197,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -194,6 +233,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + +