D7011: Extract KPasswordLineEdit class

Christoph Feck noreply at phabricator.kde.org
Thu Aug 3 08:50:42 UTC 2017


cfeck added inline comments.

INLINE COMMENTS

> cfeck wrote in kpasswordlineedit.cpp:30
> Does this class need to be a QObject? If not, remove the QObject stuff.

Ping?

> kpasswordlineedit.h:53
> +    Q_PROPERTY(bool clearButtonEnabled READ isClearButtonEnabled WRITE setClearButtonEnabled)
> +    Q_PROPERTY(QLineEdit::EchoMode echoMode READ echoMode WRITE setEchoMode)
> +public:

NOTIFY echoModeChanged

> kpasswordlineedit.h:83
> +    /**
> +     * Show/hide clear button
> +     */

Document default value.

> kpasswordlineedit.h:93
> +    /**
> +     * Change echo mode
> +     */

Please document the default value. If it is indeed QLineEdit::Password (which I would expect), remove the properties from the .ui files.

REVISION DETAIL
  https://phabricator.kde.org/D7011

To: mlaurent, cfeck, dfaure, elvisangelaccio
Cc: kossebau, elvisangelaccio, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170803/a4a8f818/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list