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/keyboardimpl.cpp | |
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/keyboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | development/keyview/keyboardimpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/development/keyview/keyboardimpl.cpp b/development/keyview/keyboardimpl.cpp index 673eaa5..0216110 100644 --- a/development/keyview/keyboardimpl.cpp +++ b/development/keyview/keyboardimpl.cpp | |||
@@ -164,6 +164,8 @@ QString KeyboardImpl::name() | |||
164 | 164 | ||
165 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 165 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
166 | { | 166 | { |
167 | Q_UNUSED( receiver ); | ||
168 | Q_CONST_UNUSED( slot ); | ||
167 | //if ( input ) | 169 | //if ( input ) |
168 | //QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 170 | //QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
169 | } | 171 | } |
@@ -176,6 +178,8 @@ QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **ifa | |||
176 | *iface = this; | 178 | *iface = this; |
177 | else if ( uuid == IID_InputMethod ) | 179 | else if ( uuid == IID_InputMethod ) |
178 | *iface = this; | 180 | *iface = this; |
181 | else | ||
182 | return QS_FALSE; | ||
179 | 183 | ||
180 | if ( *iface ) | 184 | if ( *iface ) |
181 | (*iface)->addRef(); | 185 | (*iface)->addRef(); |