author | davipt <davipt> | 2002-06-28 13:36:05 (UTC) |
---|---|---|
committer | davipt <davipt> | 2002-06-28 13:36:05 (UTC) |
commit | d4626cc76127b7022c8555ea11afbb289714c851 (patch) (unidiff) | |
tree | 3c4606b2574285f324c21ef78fd47ba6e55d8219 /inputmethods/unikeyboard/unikeyboardimpl.cpp | |
parent | a94b5ab5cee9922fc02deb14a252b0c998dde1f7 (diff) | |
download | opie-d4626cc76127b7022c8555ea11afbb289714c851.zip opie-d4626cc76127b7022c8555ea11afbb289714c851.tar.gz opie-d4626cc76127b7022c8555ea11afbb289714c851.tar.bz2 |
Fix bug #9 except that we need something else to translate keyboard names.
Diffstat (limited to 'inputmethods/unikeyboard/unikeyboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/unikeyboard/unikeyboardimpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inputmethods/unikeyboard/unikeyboardimpl.cpp b/inputmethods/unikeyboard/unikeyboardimpl.cpp index fe601e0..aa05b31 100644 --- a/inputmethods/unikeyboard/unikeyboardimpl.cpp +++ b/inputmethods/unikeyboard/unikeyboardimpl.cpp | |||
@@ -66,25 +66,26 @@ void UniKeyboardImpl::resetState() | |||
66 | input->resetState(); | 66 | input->resetState(); |
67 | } | 67 | } |
68 | 68 | ||
69 | QPixmap *UniKeyboardImpl::icon() | 69 | QPixmap *UniKeyboardImpl::icon() |
70 | { | 70 | { |
71 | if ( !icn ) | 71 | if ( !icn ) |
72 | icn = new QPixmap( (const char **)uni_xpm ); | 72 | icn = new QPixmap( (const char **)uni_xpm ); |
73 | return icn; | 73 | return icn; |
74 | } | 74 | } |
75 | 75 | ||
76 | QString UniKeyboardImpl::name() | 76 | QString UniKeyboardImpl::name() |
77 | { | 77 | { |
78 | return qApp->translate( "InputMethods", "Unicode" ); | 78 | // return qApp->translate( "InputMethods", "Unicode" ); |
79 | return "Unicode"; | ||
79 | } | 80 | } |
80 | 81 | ||
81 | void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 82 | void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
82 | { | 83 | { |
83 | if ( input ) | 84 | if ( input ) |
84 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 85 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
85 | } | 86 | } |
86 | 87 | ||
87 | QRESULT UniKeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 88 | QRESULT UniKeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
88 | { | 89 | { |
89 | *iface = 0; | 90 | *iface = 0; |
90 | if ( uuid == IID_QUnknown ) | 91 | if ( uuid == IID_QUnknown ) |