summaryrefslogtreecommitdiff
path: root/development/keyview/keyview.h
authorzecke <zecke>2004-08-14 17:15:44 (UTC)
committer zecke <zecke>2004-08-14 17:15:44 (UTC)
commit74363a9e1d5688d65286e7fea156227b68a28002 (patch) (side-by-side diff)
tree3926a1a3bd42bebb2f67b3334735bc3b3931f796 /development/keyview/keyview.h
parent7657b6986a600ec1b3626c83e8f19036bf69e493 (diff)
downloadopie-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.h2
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
@@ -1,43 +1,43 @@
#ifndef KEYVIEW_H
#define KEYVIEW_H
#include <qgrid.h>
#include <qlineedit.h>
#include <qwindowsystem_qws.h>
class Keyview : public QGrid
{
Q_OBJECT
public:
Keyview( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Keyview();
private slots:
void updateItems(int, int, int, bool, bool);
private:
QLineEdit *unicode;
QLineEdit *keycode;
QLineEdit *modifiers;
QLineEdit *isPress;
QLineEdit *autoRepeat;
-
};
class KeyFilter : public QObject, public QWSServer::KeyboardFilter
{
Q_OBJECT
public:
KeyFilter( QObject* parent, const char* name = 0);
+ virtual ~KeyFilter();
virtual bool filter(int unicode, int keycode, int modifiers, bool isPress,
bool autoRepeat);
signals:
void keyPressed(int, int, int, bool, bool);
};
#endif