mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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)
This commit is contained in:
parent
50d2b10315
commit
dfa0e29927
@ -30,7 +30,7 @@ class ProfileModel(QAbstractListModel):
|
|||||||
if profile.name.startswith('Default '):
|
if profile.name.startswith('Default '):
|
||||||
return _('Default profile')
|
return _('Default profile')
|
||||||
return __builtins__['_'](profile.name)
|
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
|
w, h = profile.screen_size
|
||||||
if w >= 10000:
|
if w >= 10000:
|
||||||
ss = _('unlimited')
|
ss = _('unlimited')
|
||||||
@ -63,10 +63,8 @@ class PageSetupWidget(Widget, Ui_Form):
|
|||||||
x.setMouseTracking(True)
|
x.setMouseTracking(True)
|
||||||
x.entered[(QModelIndex)].connect(self.show_desc)
|
x.entered[(QModelIndex)].connect(self.show_desc)
|
||||||
self.initialize_options(get_option, get_help, db, book_id)
|
self.initialize_options(get_option, get_help, db, book_id)
|
||||||
it = unicode_type(self.opt_input_profile.toolTip())
|
self.opt_input_profile.setToolTip('')
|
||||||
self.opt_input_profile.setToolTip('<p>'+it.replace('t.','t.\n<br>'))
|
self.opt_output_profile.setToolTip('')
|
||||||
it = unicode_type(self.opt_output_profile.toolTip())
|
|
||||||
self.opt_output_profile.setToolTip('<p>'+it.replace('t.','ce.\n<br>'))
|
|
||||||
|
|
||||||
def show_desc(self, index):
|
def show_desc(self, index):
|
||||||
desc = unicode_type(index.model().data(index, Qt.ItemDataRole.StatusTipRole) or '')
|
desc = unicode_type(index.model().data(index, Qt.ItemDataRole.StatusTipRole) or '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user