From 74363a9e1d5688d65286e7fea156227b68a28002 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 14 Aug 2004 17:15:44 +0000 Subject: -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? --- (limited to 'development/keyview/keyview.h') 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 @@ -23,7 +23,6 @@ private: QLineEdit *modifiers; QLineEdit *isPress; QLineEdit *autoRepeat; - }; class KeyFilter : public QObject, public QWSServer::KeyboardFilter @@ -32,6 +31,7 @@ class KeyFilter : public QObject, public QWSServer::KeyboardFilter public: KeyFilter( QObject* parent, const char* name = 0); + virtual ~KeyFilter(); virtual bool filter(int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat); -- cgit v0.9.0.2