Diffstat (limited to 'inputmethods/keyboard/keyboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/keyboard/keyboardimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inputmethods/keyboard/keyboardimpl.cpp b/inputmethods/keyboard/keyboardimpl.cpp index 3c77fe6..701d35f 100644 --- a/inputmethods/keyboard/keyboardimpl.cpp +++ b/inputmethods/keyboard/keyboardimpl.cpp | |||
@@ -94,35 +94,37 @@ QPixmap *KeyboardImpl::icon() | |||
94 | if ( !icn ) | 94 | if ( !icn ) |
95 | icn = new QPixmap( (const char **)kb_xpm ); | 95 | icn = new QPixmap( (const char **)kb_xpm ); |
96 | return icn; | 96 | return icn; |
97 | } | 97 | } |
98 | 98 | ||
99 | QString KeyboardImpl::name() | 99 | QString KeyboardImpl::name() |
100 | { | 100 | { |
101 | return qApp->translate( "InputMethods", "Keyboard" ); | 101 | return qApp->translate( "InputMethods", "Keyboard" ); |
102 | } | 102 | } |
103 | 103 | ||
104 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 104 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
105 | { | 105 | { |
106 | if ( input ) | 106 | if ( input ) |
107 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 107 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
108 | } | 108 | } |
109 | 109 | ||
110 | #ifndef QT_NO_COMPONENT | 110 | #ifndef QT_NO_COMPONENT |
111 | QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 111 | QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
112 | { | 112 | { |
113 | *iface = 0; | 113 | *iface = 0; |
114 | if ( uuid == IID_QUnknown ) | 114 | if ( uuid == IID_QUnknown ) |
115 | *iface = this; | 115 | *iface = this; |
116 | else if ( uuid == IID_InputMethod ) | 116 | else if ( uuid == IID_InputMethod ) |
117 | *iface = this; | 117 | *iface = this; |
118 | else | ||
119 | return QS_FALSE; | ||
118 | 120 | ||
119 | if ( *iface ) | 121 | if ( *iface ) |
120 | (*iface)->addRef(); | 122 | (*iface)->addRef(); |
121 | return QS_OK; | 123 | return QS_OK; |
122 | } | 124 | } |
123 | 125 | ||
124 | Q_EXPORT_INTERFACE() | 126 | Q_EXPORT_INTERFACE() |
125 | { | 127 | { |
126 | Q_CREATE_INSTANCE( KeyboardImpl ) | 128 | Q_CREATE_INSTANCE( KeyboardImpl ) |
127 | } | 129 | } |
128 | #endif | 130 | #endif |