-rw-r--r-- | inputmethods/pickboard/pickboardimpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inputmethods/pickboard/pickboardimpl.cpp b/inputmethods/pickboard/pickboardimpl.cpp index a4e8f02..617acff 100644 --- a/inputmethods/pickboard/pickboardimpl.cpp +++ b/inputmethods/pickboard/pickboardimpl.cpp | |||
@@ -49,49 +49,50 @@ PickboardImpl::~PickboardImpl() | |||
49 | } | 49 | } |
50 | 50 | ||
51 | QWidget *PickboardImpl::inputMethod( QWidget *parent, Qt::WFlags f ) | 51 | QWidget *PickboardImpl::inputMethod( QWidget *parent, Qt::WFlags f ) |
52 | { | 52 | { |
53 | if ( !pickboard ) | 53 | if ( !pickboard ) |
54 | pickboard = new Pickboard( parent, "pickboard", f ); | 54 | pickboard = new Pickboard( parent, "pickboard", f ); |
55 | return pickboard; | 55 | return pickboard; |
56 | } | 56 | } |
57 | 57 | ||
58 | void PickboardImpl::resetState() | 58 | void PickboardImpl::resetState() |
59 | { | 59 | { |
60 | if ( pickboard ) | 60 | if ( pickboard ) |
61 | pickboard->resetState(); | 61 | pickboard->resetState(); |
62 | } | 62 | } |
63 | 63 | ||
64 | QPixmap *PickboardImpl::icon() | 64 | QPixmap *PickboardImpl::icon() |
65 | { | 65 | { |
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 | ||
71 | QString PickboardImpl::name() | 71 | QString PickboardImpl::name() |
72 | { | 72 | { |
73 | return qApp->translate( "InputMethods", "Pickboard" ); | 73 | // return qApp->translate( "InputMethods", "Pickboard" ); |
74 | return "Pickboard"; | ||
74 | } | 75 | } |
75 | 76 | ||
76 | void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 77 | void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
77 | { | 78 | { |
78 | if ( pickboard ) | 79 | if ( pickboard ) |
79 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 80 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
80 | } | 81 | } |
81 | 82 | ||
82 | #ifndef QT_NO_COMPONENT | 83 | #ifndef QT_NO_COMPONENT |
83 | QRESULT PickboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 84 | QRESULT PickboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
84 | { | 85 | { |
85 | *iface = 0; | 86 | *iface = 0; |
86 | if ( uuid == IID_QUnknown ) | 87 | if ( uuid == IID_QUnknown ) |
87 | *iface = this; | 88 | *iface = this; |
88 | else if ( uuid == IID_InputMethod ) | 89 | else if ( uuid == IID_InputMethod ) |
89 | *iface = this; | 90 | *iface = this; |
90 | 91 | ||
91 | if ( *iface ) | 92 | if ( *iface ) |
92 | (*iface)->addRef(); | 93 | (*iface)->addRef(); |
93 | return QS_OK; | 94 | return QS_OK; |
94 | } | 95 | } |
95 | 96 | ||
96 | Q_EXPORT_INTERFACE() | 97 | Q_EXPORT_INTERFACE() |
97 | { | 98 | { |