summaryrefslogtreecommitdiff
path: root/inputmethods/handwriting/handwritingimpl.cpp
Unidiff
Diffstat (limited to 'inputmethods/handwriting/handwritingimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/handwriting/handwritingimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/inputmethods/handwriting/handwritingimpl.cpp b/inputmethods/handwriting/handwritingimpl.cpp
index c39e1aa..0ea140c 100644
--- a/inputmethods/handwriting/handwritingimpl.cpp
+++ b/inputmethods/handwriting/handwritingimpl.cpp
@@ -62,49 +62,50 @@ HandwritingImpl::~HandwritingImpl()
62} 62}
63 63
64QWidget *HandwritingImpl::inputMethod( QWidget *parent, Qt::WFlags f ) 64QWidget *HandwritingImpl::inputMethod( QWidget *parent, Qt::WFlags f )
65{ 65{
66 if ( !input ) 66 if ( !input )
67 input = new QIMPenInput( parent, "Handwriting", f ); 67 input = new QIMPenInput( parent, "Handwriting", f );
68 return input; 68 return input;
69} 69}
70 70
71void HandwritingImpl::resetState() 71void HandwritingImpl::resetState()
72{ 72{
73 if ( input ) 73 if ( input )
74 input->resetState(); 74 input->resetState();
75} 75}
76 76
77QPixmap *HandwritingImpl::icon() 77QPixmap *HandwritingImpl::icon()
78{ 78{
79 if ( !icn ) 79 if ( !icn )
80 icn = new QPixmap( (const char **)pen_xpm ); 80 icn = new QPixmap( (const char **)pen_xpm );
81 return icn; 81 return icn;
82} 82}
83 83
84QString HandwritingImpl::name() 84QString HandwritingImpl::name()
85{ 85{
86 return qApp->translate( "InputMethods", "Handwriting" ); 86 // return qApp->translate( "InputMethods", "Handwriting" );
87 return "Handwriting";
87} 88}
88 89
89void HandwritingImpl::onKeyPress( QObject *receiver, const char *slot ) 90void HandwritingImpl::onKeyPress( QObject *receiver, const char *slot )
90{ 91{
91 if ( input ) 92 if ( input )
92 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); 93 QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
93} 94}
94 95
95#ifndef QT_NO_COMPONENT 96#ifndef QT_NO_COMPONENT
96QRESULT HandwritingImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 97QRESULT HandwritingImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
97{ 98{
98 *iface = 0; 99 *iface = 0;
99 if ( uuid == IID_QUnknown ) 100 if ( uuid == IID_QUnknown )
100 *iface = this; 101 *iface = this;
101 else if ( uuid == IID_InputMethod ) 102 else if ( uuid == IID_InputMethod )
102 *iface = this; 103 *iface = this;
103 104
104 if ( *iface ) 105 if ( *iface )
105 (*iface)->addRef(); 106 (*iface)->addRef();
106 return QS_OK; 107 return QS_OK;
107} 108}
108 109
109Q_EXPORT_INTERFACE() 110Q_EXPORT_INTERFACE()
110{ 111{