summaryrefslogtreecommitdiff
path: root/inputmethods/handwriting
authorzecke <zecke>2004-02-05 17:15:20 (UTC)
committer zecke <zecke>2004-02-05 17:15:20 (UTC)
commitf6487edaaad38c6454fc50697d7884f0bc627489 (patch) (side-by-side diff)
tree26b2ea805710488c84a731fef576467047fb80fd /inputmethods/handwriting
parent416c72588577bca18ba1c9180701143e7e572eed (diff)
downloadopie-f6487edaaad38c6454fc50697d7884f0bc627489.zip
opie-f6487edaaad38c6454fc50697d7884f0bc627489.tar.gz
opie-f6487edaaad38c6454fc50697d7884f0bc627489.tar.bz2
More janitor....
remove ulong ref because we use Q_REFCOUNT which also takes care of initializing the refcount to 0 "And if you save yourself You will make him happy He'll keep you in a jar And you'll think you're happy He'll give you breathing holes"
Diffstat (limited to 'inputmethods/handwriting') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/handwriting/handwritingimpl.cpp2
-rw-r--r--inputmethods/handwriting/handwritingimpl.h1
2 files changed, 1 insertions, 2 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
@@ -30,49 +30,49 @@ static const char * pen_xpm[] = {
" 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()
{
diff --git a/inputmethods/handwriting/handwritingimpl.h b/inputmethods/handwriting/handwritingimpl.h
index 1215853..4297c8c 100644
--- a/inputmethods/handwriting/handwritingimpl.h
+++ b/inputmethods/handwriting/handwritingimpl.h
@@ -24,28 +24,27 @@
class QIMPenInput;
class QPixmap;
class HandwritingImpl : public InputMethodInterface
{
public:
HandwritingImpl();
virtual ~HandwritingImpl();
#ifndef QT_NO_COMPONENT
QRESULT queryInterface( const QUuid&, QUnknownInterface** );
Q_REFCOUNT
#endif
virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f );
virtual void resetState();
virtual QPixmap *icon();
virtual QString name();
virtual void onKeyPress( QObject *receiver, const char *slot );
private:
QIMPenInput *input;
QPixmap *icn;
- ulong ref;
};
#endif