author | zecke <zecke> | 2004-08-14 17:15:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-14 17:15:44 (UTC) |
commit | 74363a9e1d5688d65286e7fea156227b68a28002 (patch) (unidiff) | |
tree | 3926a1a3bd42bebb2f67b3334735bc3b3931f796 /development/keyview/keyview.h | |
parent | 7657b6986a600ec1b3626c83e8f19036bf69e493 (diff) | |
download | opie-74363a9e1d5688d65286e7fea156227b68a28002.zip opie-74363a9e1d5688d65286e7fea156227b68a28002.tar.gz opie-74363a9e1d5688d65286e7fea156227b68a28002.tar.bz2 |
-Remove the KeyFilter on destruction
Alwin could we either add a 'QObject' as a owner so that we could use
QGuardedPtr or look for the deleteEvent ourselves.
Or let us create a KeyFilter ourselves that auto registers (maybe) but
cleans up itself in any case?
Diffstat (limited to 'development/keyview/keyview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | development/keyview/keyview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/development/keyview/keyview.h b/development/keyview/keyview.h index 5f1e943..87c0d15 100644 --- a/development/keyview/keyview.h +++ b/development/keyview/keyview.h | |||
@@ -14,30 +14,30 @@ public: | |||
14 | ~Keyview(); | 14 | ~Keyview(); |
15 | 15 | ||
16 | private slots: | 16 | private slots: |
17 | void updateItems(int, int, int, bool, bool); | 17 | void updateItems(int, int, int, bool, bool); |
18 | 18 | ||
19 | private: | 19 | private: |
20 | 20 | ||
21 | QLineEdit *unicode; | 21 | QLineEdit *unicode; |
22 | QLineEdit *keycode; | 22 | QLineEdit *keycode; |
23 | QLineEdit *modifiers; | 23 | QLineEdit *modifiers; |
24 | QLineEdit *isPress; | 24 | QLineEdit *isPress; |
25 | QLineEdit *autoRepeat; | 25 | QLineEdit *autoRepeat; |
26 | |||
27 | }; | 26 | }; |
28 | 27 | ||
29 | class KeyFilter : public QObject, public QWSServer::KeyboardFilter | 28 | class KeyFilter : public QObject, public QWSServer::KeyboardFilter |
30 | { | 29 | { |
31 | Q_OBJECT | 30 | Q_OBJECT |
32 | 31 | ||
33 | public: | 32 | public: |
34 | KeyFilter( QObject* parent, const char* name = 0); | 33 | KeyFilter( QObject* parent, const char* name = 0); |
34 | virtual ~KeyFilter(); | ||
35 | virtual bool filter(int unicode, int keycode, int modifiers, bool isPress, | 35 | virtual bool filter(int unicode, int keycode, int modifiers, bool isPress, |
36 | bool autoRepeat); | 36 | bool autoRepeat); |
37 | 37 | ||
38 | signals: | 38 | signals: |
39 | void keyPressed(int, int, int, bool, bool); | 39 | void keyPressed(int, int, int, bool, bool); |
40 | 40 | ||
41 | }; | 41 | }; |
42 | 42 | ||
43 | #endif | 43 | #endif |