aboutsummaryrefslogtreecommitdiff
path: root/src/lock.cpp
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavbhatt@users.noreply.github.com>2022-03-30 04:24:36 +0530
committerLibravatar GitHub <noreply@github.com>2022-03-30 04:24:36 +0530
commit474b9212a6630c8404d5f4cf7aa02428deddd3fd (patch)
treed3ae12704da254acb18c74fd5e741ae2b1c055ea /src/lock.cpp
parent8f071469453c6dbbe3c3dbc78ee893f239835b5a (diff)
downloadwhatsie-474b9212a6630c8404d5f4cf7aa02428deddd3fd.tar.gz
whatsie-474b9212a6630c8404d5f4cf7aa02428deddd3fd.zip
feat: v4.0 (#35)
* add new widgets * feat: version 4.0 - SystemTray: tray icon uses png rather than svg - SystemTray: added settings to lets user change the systemtray icon click behavior(minimize/maximize on right click) - Download: added settiing that lets user set default download directory, avoid asking while saving files - Lock: added setting to let user change current set password for lock screen - Lock: current set password now hidden by default and can be revealed for 5 seconds by pressing view button - Style/Theme: added ability to change widget style on the fly, added default light palatte (prevent breaking of light theme on KDE EVs) - Theme: dark theme update - WebApp: added setting to set zoom factor when window is maximized and fullscreen (gives user ability to set different zoom factor for Normal , Maximized/Fullscreen WindowStates) - Setting: settings UI is more oraganized - WebApp: enable JavaScript execCommand("paste") - WebApp: tested for new WhatsApp Web that lets users use whatsie without requiring the phone connected to internet
Diffstat (limited to 'src/lock.cpp')
-rw-r--r--src/lock.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lock.cpp b/src/lock.cpp
index 4eb65d1..c2b8a13 100644
--- a/src/lock.cpp
+++ b/src/lock.cpp
@@ -23,11 +23,7 @@ Lock::Lock(QWidget *parent) : QWidget(parent), ui(new Ui::Lock) {
animate();
if (settings.value("asdfg").isValid() == false) {
- isLocked = false;
- ui->signup->show();
- ui->login->hide();
- animate();
- ui->passcode1->setFocus();
+ signUp();
} else {
lock_app();
}
@@ -43,6 +39,15 @@ Lock::Lock(QWidget *parent) : QWidget(parent), ui(new Ui::Lock) {
ui->wrong->setStyleSheet(capsStyle);
}
+
+void Lock::signUp(){
+ isLocked = false;
+ ui->signup->show();
+ ui->login->hide();
+ animate();
+ ui->passcode1->setFocus();
+}
+
void Lock::animate() {
ui->centerWidget->hide();
QPropertyAnimation *a =