~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to examples/apps/twofields/actionkeyfilter.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef ACTION_KEY_FILTER_H
2
 
#define ACTION_KEY_FILTER_H
3
 
 
4
 
#include <QObject>
5
 
 
6
 
class QLineEdit;
7
 
 
8
 
class ActionKeyFilter : public QObject
9
 
{
10
 
    Q_OBJECT
11
 
 
12
 
public:
13
 
    ActionKeyFilter(QLineEdit *login, QLineEdit *password, QObject *parent = 0);
14
 
    bool enterLoginAccepts() const;
15
 
    bool enterPasswordAccepts() const;
16
 
 
17
 
public Q_SLOTS:
18
 
    void setEnterLoginAccepts(bool accepts);
19
 
    void setEnterPasswordAccepts(bool accepts);
20
 
 
21
 
protected:
22
 
    bool eventFilter(QObject *obj, QEvent *event);
23
 
 
24
 
private:
25
 
    QLineEdit* m_loginEdit;
26
 
    QLineEdit* m_passwordEdit;
27
 
    bool m_enterLoginAccepts;
28
 
    bool m_enterPasswordAccepts;
29
 
};
30
 
 
31
 
#endif // ACTION_KEY_FILTER_H