diff options
Diffstat (limited to 'src/lock.h')
-rw-r--r-- | src/lock.h | 61 |
1 files changed, 28 insertions, 33 deletions
@@ -1,55 +1,50 @@ #ifndef LOCK_H #define LOCK_H -#include <QWidget> #include <QSettings> +#include <QWidget> namespace Ui { class Lock; } -class Lock : public QWidget -{ - Q_OBJECT +class Lock : public QWidget { + Q_OBJECT public: - explicit Lock(QWidget *parent = nullptr); - ~Lock(); - bool isLocked = true; + explicit Lock(QWidget *parent = nullptr); + ~Lock(); + bool isLocked = true; private slots: - void on_passcode1_textChanged(const QString &arg1); - - void on_passcode2_textChanged(const QString &arg1); - - void on_setPass_clicked(); - bool check_password_set(); - void on_unlock_clicked(); - - void on_passcodeLogin_textChanged(const QString &arg1); - - void on_passcodeLogin_returnPressed(); - - bool getCapsLockOn(); - void checkCaps(); - void on_cancelSetting_clicked(); - - void animate(); + void on_passcode1_textChanged(const QString &arg1); + void on_passcode2_textChanged(const QString &arg1); + void on_setPass_clicked(); + bool check_password_set(); + void on_unlock_clicked(); + void on_passcodeLogin_textChanged(const QString &arg1); + void on_passcodeLogin_returnPressed(); + bool getCapsLockOn(); + void checkCaps(); + void on_cancelSetting_clicked(); + void animate(); public slots: - void lock_app(); - void applyThemeQuirks(); + void lock_app(); + void applyThemeQuirks(); + void signUp(); signals: - void passwordSet(); - void passwordNotSet(); - void unLocked(); + void passwordSet(); + void passwordNotSet(); + void unLocked(); protected slots: - void keyReleaseEvent(QKeyEvent *event); + void keyReleaseEvent(QKeyEvent *event); + + bool event(QEvent *e); - bool event(QEvent *e); private: - Ui::Lock *ui; - QSettings settings; + Ui::Lock *ui; + QSettings settings; }; #endif // LOCK_H |