Add a clear button to the target field

This commit is contained in:
Kovid Goyal 2021-10-24 15:50:13 +05:30
parent 79a6ab5d94
commit 4958e3623d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -859,6 +859,7 @@ class InsertSemantics(Dialog):
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)