Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2085631 [Manage Author Count Justification](https://bugs.launchpad.net/calibre/+bug/2085631)
  • Loading branch information
kovidgoyal committed Oct 25, 2024
2 parents b6af621 + 49da774 commit 89865d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/gui2/dialogs/edit_authors_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CountTableItem(QTableWidgetItem):
def __init__(self, val):
QTableWidgetItem.__init__(self, str(val))
self.val = val
self.setTextAlignment(Qt.AlignmentFlag.AlignRight)
self.setTextAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignVCenter)
self.setFlags(Qt.ItemFlag.ItemIsEnabled)

def setText(self, val):
Expand Down
1 change: 1 addition & 0 deletions src/calibre/gui2/dialogs/tag_list_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class CountTableWidgetItem(QTableWidgetItem):

def __init__(self, count):
QTableWidgetItem.__init__(self, str(count))
self.setTextAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignVCenter)
self._count = count

def __ge__(self, other):
Expand Down

0 comments on commit 89865d8

Please sign in to comment.