|
ORE Studio 0.0.4
|
Helper for password confirmation match indicators. More...
#include <PasswordMatchIndicator.hpp>

Static Public Member Functions | |
| static void | updateFieldBorder (QLineEdit *field, const QString &password, const QString &confirm, const QString &defaultStyle={}) |
| Update the border colour of the confirm password field. | |
| static void | connectFields (QLineEdit *passwordField, QLineEdit *confirmField, const QString &defaultStyle={}) |
| Connect two password fields so the confirm field's border updates automatically on every keystroke. | |
Static Public Attributes | |
| static const QString | match_border_style |
| static const QString | mismatch_border_style |
Helper for password confirmation match indicators.
Changes the confirm field's border colour to green when passwords match or red when they don't. Use connectFields to wire up the indicator automatically, or call updateFieldBorder manually.
|
static |
Update the border colour of the confirm password field.
Resets to the default style when confirm is empty, green border when passwords match, and red border when they don't.
|
static |
|
static |