From b509cfefbc28a2d0174f06fa98c56376d0d6dd6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Dec 2019 01:14:10 +0530 Subject: [PATCH] Fix #1856234 [Text under icons not shown in the Preferences for Edit book](https://bugs.launchpad.net/calibre/+bug/1856234) --- src/calibre/gui2/tweak_book/preferences.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/tweak_book/preferences.py b/src/calibre/gui2/tweak_book/preferences.py index 27bf968cb6..48d04903c4 100644 --- a/src/calibre/gui2/tweak_book/preferences.py +++ b/src/calibre/gui2/tweak_book/preferences.py @@ -729,6 +729,7 @@ class Preferences(QDialog): (_('Integration with calibre'), 'lt.png', 'integration'), ]: i = QListWidgetItem(QIcon(I(icon)), name, cl) + i.setToolTip(name) cl.addItem(i) self.stacks.addWidget(getattr(self, panel + '_panel')) @@ -741,6 +742,7 @@ class Preferences(QDialog): cl.setMaximumWidth(cl.sizeHintForColumn(0) + 35) cl.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) + cl.setMinimumWidth(min(cl.maximumWidth(), cl.sizeHint().width())) @property def dictionaries_changed(self):