-rw-r--r-- | inputmethods/jumpx/keyboardimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/jumpx/keyboardimpl.cpp b/inputmethods/jumpx/keyboardimpl.cpp index 34c227f..e75dd5f 100644 --- a/inputmethods/jumpx/keyboardimpl.cpp +++ b/inputmethods/jumpx/keyboardimpl.cpp | |||
@@ -75,23 +75,25 @@ void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | |||
75 | if ( input ) | 75 | if ( input ) |
76 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 76 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
77 | } | 77 | } |
78 | 78 | ||
79 | #ifndef QT_NO_COMPONENT | 79 | #ifndef QT_NO_COMPONENT |
80 | QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 80 | QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
81 | { | 81 | { |
82 | *iface = 0; | 82 | *iface = 0; |
83 | if ( uuid == IID_QUnknown ) | 83 | if ( uuid == IID_QUnknown ) |
84 | *iface = this; | 84 | *iface = this; |
85 | else if ( uuid == IID_InputMethod ) | 85 | else if ( uuid == IID_InputMethod ) |
86 | *iface = this; | 86 | *iface = this; |
87 | else | ||
88 | return QS_FALSE; | ||
87 | 89 | ||
88 | if ( *iface ) | 90 | if ( *iface ) |
89 | (*iface)->addRef(); | 91 | (*iface)->addRef(); |
90 | return QS_OK; | 92 | return QS_OK; |
91 | } | 93 | } |
92 | 94 | ||
93 | Q_EXPORT_INTERFACE() | 95 | Q_EXPORT_INTERFACE() |
94 | { | 96 | { |
95 | Q_CREATE_INSTANCE( KeyboardImpl ) | 97 | Q_CREATE_INSTANCE( KeyboardImpl ) |
96 | } | 98 | } |
97 | #endif | 99 | #endif |