1
#ifndef ACTION_KEY_FILTER_H
2
#define ACTION_KEY_FILTER_H
8
class ActionKeyFilter : public QObject
13
ActionKeyFilter(QLineEdit *login, QLineEdit *password, QObject *parent = 0);
14
bool enterLoginAccepts() const;
15
bool enterPasswordAccepts() const;
18
void setEnterLoginAccepts(bool accepts);
19
void setEnterPasswordAccepts(bool accepts);
22
bool eventFilter(QObject *obj, QEvent *event);
25
QLineEdit* m_loginEdit;
26
QLineEdit* m_passwordEdit;
27
bool m_enterLoginAccepts;
28
bool m_enterPasswordAccepts;
31
#endif // ACTION_KEY_FILTER_H