![]() |
Banking_System_Client
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
The UpdatePasswordDialog class provides a dialog for updating user passwords with input validation. More...
#include <UpdatePasswordDialog.h>
Public Member Functions | |
UpdatePasswordDialog (QWidget *parent=nullptr) | |
Constructor for UpdatePasswordDialog. More... | |
QVariantMap | getData () const override |
Retrieves the data entered in the dialog. More... | |
![]() | |
BaseDialog (QWidget *parent=nullptr) | |
Constructor for BaseDialog. More... | |
Protected Member Functions | |
void | setupUI () override |
Sets up the user interface. | |
![]() | |
virtual void | connectSignals () |
Connects signals for the dialog. | |
QtMaterialTextField * | createInputField (QVBoxLayout *layout, const QString &labelText, IValidationStrategy *validationStrategy, bool isPassword=false) |
Creates an input field with validation. More... | |
void | validateInput (QtMaterialTextField *field) |
Validates the input of a specified field. More... | |
void | updateConfirmButtonState () |
Updates the state of the confirm button based on the validity of the form. | |
void | setFieldValidityStyle (QtMaterialTextField *field, QLabel *errorLabel, const QString &errorMessage, bool isValid) |
Sets the validity style of an input field. More... | |
Additional Inherited Members | |
![]() | |
QMap< QtMaterialTextField *, IValidationStrategy * > | validationStrategies_ |
Stores validation strategies for input fields. | |
QMap< QtMaterialTextField *, QLabel * > | errorLabels_ |
Stores error labels for input fields. | |
QtMaterialFlatButton * | confirmButton |
The confirm button. | |
QtMaterialFlatButton * | cancelButton |
The cancel button. | |
The UpdatePasswordDialog class provides a dialog for updating user passwords with input validation.
This class sets up the user interface, connects signals, and handles user input for updating passwords.
UpdatePasswordDialog::UpdatePasswordDialog | ( | QWidget * | parent = nullptr | ) |
Constructor for UpdatePasswordDialog.
parent | The parent widget. |
|
overridevirtual |
Retrieves the data entered in the dialog.
Implements BaseDialog.