Skip to content

TextFields: revisit API

ivan tkachenko requested to merge work/ratijas/textfield-code into master

TextFields: Fix code style, improve QML/JS

ActionTextField: Demote lists of actions to generic T.Action

Never use styled QQC2 counterparts as property types. It makes them less generic for no reason and without gaining any benefits.

ActionTextField: Support hiding actions through Kirigami/Action::visible

PasswordField: Restrict custom shortcut to text field's activeFocus

Otherwise it will register itself inappropriately when field is not focused, breaking other application's shortcuts. If multiple such fields are present in one window, they would even cancel each other out, so none of their shortcuts work.

PasswordField: Support KAuthorized lineedit_reveal_password restriction

Copied from PC3/TextField implementation, adapted to Kirigami.Action and ActionTextField API.

TextField: Drop deprecated revealPasswordButtonShown property

As deprecation comment says, use PlasmaExtras/PasswordField instead.

Merge request reports

Loading