summaryrefslogtreecommitdiffstats
path: root/src/loginform.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-18 15:55:48 +0200
committerSimon Rettberg2019-04-18 15:55:48 +0200
commitdd3ee3821fb6ebab9d1b0858e357ad110822d7e1 (patch)
treec658ab6fcad69fbfcd5b79363a2557df06ddf728 /src/loginform.h
parentFix: mini-icon might get cropped if > 95px (diff)
downloadslxgreeter-dd3ee3821fb6ebab9d1b0858e357ad110822d7e1.tar.gz
slxgreeter-dd3ee3821fb6ebab9d1b0858e357ad110822d7e1.tar.xz
slxgreeter-dd3ee3821fb6ebab9d1b0858e357ad110822d7e1.zip
Add caps lock warning
Diffstat (limited to 'src/loginform.h')
-rw-r--r--src/loginform.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/loginform.h b/src/loginform.h
index 83ddd28..35d0fea 100644
--- a/src/loginform.h
+++ b/src/loginform.h
@@ -46,11 +46,12 @@ public slots:
void hideMessage();
protected:
- virtual void keyPressEvent(QKeyEvent *event);
+ virtual void keyPressEvent(QKeyEvent *event) override;
+ virtual bool eventFilter(QObject *object, QEvent *event) override;
private:
void initialize();
- void loadSubs();
+ void checkCaps();
void addLeaveEntry(bool canDo, QString iconName, QString text, QString actionName);
QString currentSession();
void setCurrentSession(QString session);
@@ -64,6 +65,7 @@ private:
QTimer hideMessageTimer;
bool clearMsg;
+ int capsOn;
};
#endif // LOGINFORM_H