Diffstat (limited to 'inputmethods/pickboard/pickboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/pickboard/pickboardimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/pickboard/pickboardimpl.cpp b/inputmethods/pickboard/pickboardimpl.cpp index a4e8f02..8f449cd 100644 --- a/inputmethods/pickboard/pickboardimpl.cpp +++ b/inputmethods/pickboard/pickboardimpl.cpp | |||
@@ -78,24 +78,26 @@ void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) | |||
78 | if ( pickboard ) | 78 | if ( pickboard ) |
79 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 79 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
80 | } | 80 | } |
81 | 81 | ||
82 | #ifndef QT_NO_COMPONENT | 82 | #ifndef QT_NO_COMPONENT |
83 | QRESULT PickboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 83 | QRESULT PickboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
84 | { | 84 | { |
85 | *iface = 0; | 85 | *iface = 0; |
86 | if ( uuid == IID_QUnknown ) | 86 | if ( uuid == IID_QUnknown ) |
87 | *iface = this; | 87 | *iface = this; |
88 | else if ( uuid == IID_InputMethod ) | 88 | else if ( uuid == IID_InputMethod ) |
89 | *iface = this; | 89 | *iface = this; |
90 | else | ||
91 | return QS_FALSE; | ||
90 | 92 | ||
91 | if ( *iface ) | 93 | if ( *iface ) |
92 | (*iface)->addRef(); | 94 | (*iface)->addRef(); |
93 | return QS_OK; | 95 | return QS_OK; |
94 | } | 96 | } |
95 | 97 | ||
96 | Q_EXPORT_INTERFACE() | 98 | Q_EXPORT_INTERFACE() |
97 | { | 99 | { |
98 | Q_CREATE_INSTANCE( PickboardImpl ) | 100 | Q_CREATE_INSTANCE( PickboardImpl ) |
99 | } | 101 | } |
100 | #endif | 102 | #endif |
101 | 103 | ||