summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/keyboardimpl.cpp
Unidiff
Diffstat (limited to 'inputmethods/multikey/keyboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/keyboardimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/multikey/keyboardimpl.cpp b/inputmethods/multikey/keyboardimpl.cpp
index 4cfbcd5..b7908d9 100644
--- a/inputmethods/multikey/keyboardimpl.cpp
+++ b/inputmethods/multikey/keyboardimpl.cpp
@@ -85,23 +85,25 @@ void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot )
85 if ( input ) 85 if ( input )
86 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); 86 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
87} 87}
88 88
89#ifndef QT_NO_COMPONENT 89#ifndef QT_NO_COMPONENT
90QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 90QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
91{ 91{
92 *iface = 0; 92 *iface = 0;
93 if ( uuid == IID_QUnknown ) 93 if ( uuid == IID_QUnknown )
94 *iface = this; 94 *iface = this;
95 else if ( uuid == IID_InputMethod ) 95 else if ( uuid == IID_InputMethod )
96 *iface = this; 96 *iface = this;
97 else
98 return QS_FALSE;
97 99
98 if ( *iface ) 100 if ( *iface )
99 (*iface)->addRef(); 101 (*iface)->addRef();
100 return QS_OK; 102 return QS_OK;
101} 103}
102 104
103Q_EXPORT_INTERFACE() 105Q_EXPORT_INTERFACE()
104{ 106{
105 Q_CREATE_INSTANCE( KeyboardImpl ) 107 Q_CREATE_INSTANCE( KeyboardImpl )
106} 108}
107#endif 109#endif