summaryrefslogtreecommitdiff
path: root/inputmethods/handwriting/handwritingimpl.cpp
Side-by-side diff
Diffstat (limited to 'inputmethods/handwriting/handwritingimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/handwriting/handwritingimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/inputmethods/handwriting/handwritingimpl.cpp b/inputmethods/handwriting/handwritingimpl.cpp
index 22e2058..bbd5b1b 100644
--- a/inputmethods/handwriting/handwritingimpl.cpp
+++ b/inputmethods/handwriting/handwritingimpl.cpp
@@ -22,65 +22,65 @@
#include <qwidget.h>
#include <qpixmap.h>
#include "qimpeninput.h"
#include "handwritingimpl.h"
/* XPM */
static const char * pen_xpm[] = {
"28 13 9 1",
" c None",
". c #000000",
"+ c #FFE993",
"@ c #8292FF",
"# c #F7C500",
"$ c #C69F00",
"% c #0022FF",
"& c #000F72",
"* c #A3732C",
" . ",
" .+. ",
" .@#$. ",
" .@%&. ",
" .@%&. ",
" . .@%&. ",
" . .@%&. ",
" . .@%&. ",
" ... ... .. .@%&. ",
" . . . . . .*.&. ",
" . . . . . .**. ",
" ... ... .. ... ",
" "};
HandwritingImpl::HandwritingImpl()
- : input(0), icn(0), ref(0)
+ : input(0), icn(0)
{
}
HandwritingImpl::~HandwritingImpl()
{
delete input;
delete icn;
}
QWidget *HandwritingImpl::inputMethod( QWidget *parent, Qt::WFlags f )
{
if ( !input )
input = new QIMPenInput( parent, "Handwriting", f );
return input;
}
void HandwritingImpl::resetState()
{
if ( input )
input->resetState();
}
QPixmap *HandwritingImpl::icon()
{
if ( !icn )
icn = new QPixmap( (const char **)pen_xpm );
return icn;
}
QString HandwritingImpl::name()
{
return qApp->translate( "InputMethods", "Handwriting" );