summaryrefslogtreecommitdiff
path: root/inputmethods/pickboard
Unidiff
Diffstat (limited to 'inputmethods/pickboard') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/pickboard/pickboardimpl.cpp2
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
@@ -66,36 +66,38 @@ QPixmap *PickboardImpl::icon()
66 if ( !icn ) 66 if ( !icn )
67 icn = new QPixmap( (const char **)pb_xpm ); 67 icn = new QPixmap( (const char **)pb_xpm );
68 return icn; 68 return icn;
69} 69}
70 70
71QString PickboardImpl::name() 71QString PickboardImpl::name()
72{ 72{
73 return qApp->translate( "InputMethods", "Pickboard" ); 73 return qApp->translate( "InputMethods", "Pickboard" );
74} 74}
75 75
76void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) 76void PickboardImpl::onKeyPress( QObject *receiver, const char *slot )
77{ 77{
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
83QRESULT PickboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 83QRESULT 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
96Q_EXPORT_INTERFACE() 98Q_EXPORT_INTERFACE()
97{ 99{
98 Q_CREATE_INSTANCE( PickboardImpl ) 100 Q_CREATE_INSTANCE( PickboardImpl )
99} 101}
100#endif 102#endif
101 103