The search field in time zones dialogue in digital clock is missing a ‘Clear’ button. It should have one. Reproducible: Always Steps to Reproduce: 1. Right-click on the digital clock, and choose to configure it. 2. Select the time zone category. 3. Write something in the search field. Actual Results: No ‘clear’ icon on the right of the search field appears. Expected Results: A ‘clear’ icon on the right of the search field should appear. Note that in the similar KCM time zones settings (*also* available when right-clicking on the digital clock, but a different menu item), a ‘clear’ icon does appear when you write in the search field.
I am going to suggest that this goes on the wishlist, as it is not directly a bug but a feature request. Thank you!
No, this is actually a bug, as search fields in KDE applications always have a clear button.
Unfortunately QtQuick.Controls TextField has no API to add buttons, so this won't be trivial. In Plasma text fields (like KRunner) we have a custom style and can do whatever we want but in config dialogs where the native style is used, this is hard, if not impossible; at least not without using private API prone to break between releases.
'Holydays' section search field is missing clear button too
Git commit 5244e2be7d748a36ea83f0109a26ebce46c5d68f by Nate Graham. Committed on 18/10/2020 at 14:59. Pushed by ngraham into branch 'master'. [applets/digital-clock] Use Kirigami.SearchField for search field That's what it was made for; might as well use it. This gives it a "clear" button for free. FIXED-IN: 5.21 M +2 -3 applets/digital-clock/package/contents/ui/configTimeZones.qml https://invent.kde.org/plasma/plasma-workspace/commit/5244e2be7d748a36ea83f0109a26ebce46c5d68f