18 Q_PROPERTY(QString userName READ userName)
19 Q_PROPERTY(QString password READ password)
20 Q_PROPERTY(QString description READ description WRITE setDescription)
21 Q_PROPERTY(
bool promtForUserName READ promtForUserName WRITE setPromptForUserName)
22 Q_PROPERTY(
bool isVerificationRequired READ isVerificationRequired WRITE setVerificationRequired)
23 Q_PROPERTY(
bool isPasswordRequired READ isPasswordRequired WRITE setPasswordRequired)
24 Q_PROPERTY(QString instruction READ instruction WRITE setInstruction)
25 Q_PROPERTY(
bool isCapslockPressed READ isCapslockPressed)
30 const QString &userName() const;
31 const QString &password() const;
32 QString description() const;
33 void setDescription(const QString &description = QString());
34 bool promtForUserName() const;
35 void setPromptForUserName(
bool prompt);
36 bool isVerificationRequired() const;
37 void setVerificationRequired(
bool value);
38 bool isPasswordRequired() const;
39 void setPasswordRequired(
bool value);
40 const QString &instruction() const;
41 void setInstruction(const QString &value);
42 static
bool isCapslockPressed();
45 bool event(QEvent *event) override;
46 bool eventFilter(QObject *sender, QEvent *event) override;
49 void updateShowPassword();
57 QString m_instruction;
58 bool m_capslockPressed;