summaryrefslogtreecommitdiff
path: root/inputmethods/unikeyboard/unikeyboardimpl.cpp
authorzecke <zecke>2004-01-27 18:54:49 (UTC)
committer zecke <zecke>2004-01-27 18:54:49 (UTC)
commit829b13ec0e4ffb359ab39c16c564719908173ffa (patch) (unidiff)
tree0741e3ba2866cb4a065d614f4d38442007447a1f /inputmethods/unikeyboard/unikeyboardimpl.cpp
parentb2823e2919b746107b13ebdf603fa04cec8fba72 (diff)
downloadopie-829b13ec0e4ffb359ab39c16c564719908173ffa.zip
opie-829b13ec0e4ffb359ab39c16c564719908173ffa.tar.gz
opie-829b13ec0e4ffb359ab39c16c564719908173ffa.tar.bz2
Another bunch of return QS_FALSE;
Diffstat (limited to 'inputmethods/unikeyboard/unikeyboardimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/unikeyboard/unikeyboardimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/unikeyboard/unikeyboardimpl.cpp b/inputmethods/unikeyboard/unikeyboardimpl.cpp
index fe601e0..e7fc00e 100644
--- a/inputmethods/unikeyboard/unikeyboardimpl.cpp
+++ b/inputmethods/unikeyboard/unikeyboardimpl.cpp
@@ -82,24 +82,26 @@ void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot )
82{ 82{
83 if ( input ) 83 if ( input )
84 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); 84 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
85} 85}
86 86
87QRESULT UniKeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 87QRESULT UniKeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
88{ 88{
89 *iface = 0; 89 *iface = 0;
90 if ( uuid == IID_QUnknown ) 90 if ( uuid == IID_QUnknown )
91 *iface = this; 91 *iface = this;
92 else if ( uuid == IID_InputMethod ) 92 else if ( uuid == IID_InputMethod )
93 *iface = this; 93 *iface = this;
94 else
95 return QS_FALSE;
94 96
95 if ( *iface ) 97 if ( *iface )
96 (*iface)->addRef(); 98 (*iface)->addRef();
97 return QS_OK; 99 return QS_OK;
98} 100}
99 101
100Q_EXPORT_INTERFACE() 102Q_EXPORT_INTERFACE()
101{ 103{
102 Q_CREATE_INSTANCE( UniKeyboardImpl ) 104 Q_CREATE_INSTANCE( UniKeyboardImpl )
103} 105}
104 106
105 107