Diffstat (limited to 'inputmethods/handwriting/qimpenwordpick.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | inputmethods/handwriting/qimpenwordpick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inputmethods/handwriting/qimpenwordpick.cpp b/inputmethods/handwriting/qimpenwordpick.cpp index 8ee103d..39745c6 100644 --- a/inputmethods/handwriting/qimpenwordpick.cpp +++ b/inputmethods/handwriting/qimpenwordpick.cpp | |||
@@ -95,19 +95,19 @@ void QIMPenWordPick::paintEvent( QPaintEvent * ) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | void QIMPenWordPick::mousePressEvent( QMouseEvent *e ) | 97 | void QIMPenWordPick::mousePressEvent( QMouseEvent *e ) |
98 | { | 98 | { |
99 | clickWord = onWord( e->pos() ); | 99 | clickWord = onWord( e->pos() ); |
100 | repaint(); | 100 | repaint(); |
101 | } | 101 | } |
102 | 102 | ||
103 | void QIMPenWordPick::mouseReleaseEvent( QMouseEvent *e ) | 103 | void QIMPenWordPick::mouseReleaseEvent( QMouseEvent *e ) |
104 | { | 104 | { |
105 | int wordIdx = onWord( e->pos() ); | 105 | int wordIdx = onWord( e->pos() ); |
106 | if ( wordIdx >= 0 && wordIdx == clickWord ) { | 106 | if ( wordIdx >= 0 && wordIdx == clickWord ) { |
107 | //qDebug( "Clicked %s", words[wordIdx].latin1() ); | 107 | //odebug << "Clicked " << words[wordIdx].latin1() << oendl; |
108 | emit wordClicked( words[wordIdx] ); | 108 | emit wordClicked( words[wordIdx] ); |
109 | } | 109 | } |
110 | clickWord = -1; | 110 | clickWord = -1; |
111 | repaint(); | 111 | repaint(); |
112 | } | 112 | } |
113 | 113 | ||