From dfa0e299270450edac6972b044d5e06e15831249 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Jul 2021 11:42:20 +0530 Subject: [PATCH] Dont show popup tooltip for page profiles as this is already displayed in window. Fixes #1934623 [The same profile information is displayed in three places in the same window](https://bugs.launchpad.net/calibre/+bug/1934623) --- src/calibre/gui2/convert/page_setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/calibre/gui2/convert/page_setup.py b/src/calibre/gui2/convert/page_setup.py index e31bdf1db6..f59b77cf7a 100644 --- a/src/calibre/gui2/convert/page_setup.py +++ b/src/calibre/gui2/convert/page_setup.py @@ -30,7 +30,7 @@ class ProfileModel(QAbstractListModel): if profile.name.startswith('Default '): return _('Default profile') return __builtins__['_'](profile.name) - if role in (Qt.ItemDataRole.ToolTipRole, Qt.ItemDataRole.StatusTipRole, Qt.ItemDataRole.WhatsThisRole): + if role in (Qt.ItemDataRole.StatusTipRole, Qt.ItemDataRole.WhatsThisRole): w, h = profile.screen_size if w >= 10000: ss = _('unlimited') @@ -63,10 +63,8 @@ class PageSetupWidget(Widget, Ui_Form): x.setMouseTracking(True) x.entered[(QModelIndex)].connect(self.show_desc) self.initialize_options(get_option, get_help, db, book_id) - it = unicode_type(self.opt_input_profile.toolTip()) - self.opt_input_profile.setToolTip('

'+it.replace('t.','t.\n
')) - it = unicode_type(self.opt_output_profile.toolTip()) - self.opt_output_profile.setToolTip('

'+it.replace('t.','ce.\n
')) + self.opt_input_profile.setToolTip('') + self.opt_output_profile.setToolTip('') def show_desc(self, index): desc = unicode_type(index.model().data(index, Qt.ItemDataRole.StatusTipRole) or '')