Edit book spell check: In the list of suggestions show the original word in italics. Fixes #1727827 [[Enhancement] spelling checker](https://bugs.launchpad.net/calibre/+bug/1727827)

This commit is contained in:
Kovid Goyal 2017-10-31 12:56:26 +05:30
parent 43011b9a97
commit d7359303fc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1104,6 +1104,11 @@ class SpellCheck(Dialog):
self.suggested_list.setCurrentItem(item)
self.suggested_word.setText(s)
word_suggested = True
if s is current_word:
f = item.font()
f.setItalic(True)
item.setFont(f)
item.setToolTip(_('The original word'))
if not word_suggested:
self.suggested_word.setText(current_word)