summaryrefslogtreecommitdiff
path: root/inputmethods/dvorak/dvorakimpl.cpp
Unidiff
Diffstat (limited to 'inputmethods/dvorak/dvorakimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/dvorak/dvorakimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/dvorak/dvorakimpl.cpp b/inputmethods/dvorak/dvorakimpl.cpp
index 8050ce1..9e9fed9 100644
--- a/inputmethods/dvorak/dvorakimpl.cpp
+++ b/inputmethods/dvorak/dvorakimpl.cpp
@@ -108,23 +108,25 @@ void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot )
108 if ( input ) 108 if ( input )
109 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); 109 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
110} 110}
111 111
112#ifndef QT_NO_COMPONENT 112#ifndef QT_NO_COMPONENT
113QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 113QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
114{ 114{
115 *iface = 0; 115 *iface = 0;
116 if ( uuid == IID_QUnknown ) 116 if ( uuid == IID_QUnknown )
117 *iface = this; 117 *iface = this;
118 else if ( uuid == IID_InputMethod ) 118 else if ( uuid == IID_InputMethod )
119 *iface = this; 119 *iface = this;
120 else
121 return QS_FALSE;
120 122
121 if ( *iface ) 123 if ( *iface )
122 (*iface)->addRef(); 124 (*iface)->addRef();
123 return QS_OK; 125 return QS_OK;
124} 126}
125 127
126Q_EXPORT_INTERFACE() 128Q_EXPORT_INTERFACE()
127{ 129{
128 Q_CREATE_INSTANCE( KeyboardImpl ) 130 Q_CREATE_INSTANCE( KeyboardImpl )
129} 131}
130#endif 132#endif