Skip to content

Commit

Permalink
Add a clear button to the target field
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Oct 24, 2021
1 parent 79a6ab5 commit 4958e36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/calibre/gui2/tweak_book/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ def setup_ui(self):
self.semantic_type.addItem(val, key)
tl.addRow(_('Type of &semantics:'), self.semantic_type)
self.target = t = QLineEdit(self)
t.setClearButtonEnabled(True)
t.setPlaceholderText(_('The destination (href) for the link'))
tl.addRow(_('&Target:'), t)
l.addLayout(tl)
Expand Down

0 comments on commit 4958e36

Please sign in to comment.