summaryrefslogtreecommitdiff
path: root/inputmethods/handwriting/qimpenmatch.cpp
Side-by-side diff
Diffstat (limited to 'inputmethods/handwriting/qimpenmatch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/handwriting/qimpenmatch.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/inputmethods/handwriting/qimpenmatch.cpp b/inputmethods/handwriting/qimpenmatch.cpp
index 0d3e25a..a0448b6 100644
--- a/inputmethods/handwriting/qimpenmatch.cpp
+++ b/inputmethods/handwriting/qimpenmatch.cpp
@@ -27,2 +27,3 @@
#include <qtimer.h>
+#include <opie2/odebug.h>
@@ -70,3 +71,3 @@ void QIMPenMatch::strokeEntered( QIMPenStroke *st )
#ifdef DEBUG_QIMPEN
- qDebug( "---------- new stroke -------------" );
+ odebug << "---------- new stroke -------------" << oendl;
#endif
@@ -83,3 +84,3 @@ void QIMPenMatch::strokeEntered( QIMPenStroke *st )
#ifdef DEBUG_QIMPEN
- qDebug( "Matching against multi set" );
+ odebug << "Matching against multi set" << oendl;
#endif
@@ -88,3 +89,3 @@ void QIMPenMatch::strokeEntered( QIMPenStroke *st )
#ifdef DEBUG_QIMPEN
- qDebug( "Matching against single set" );
+ odebug << "Matching against single set" << oendl;
#endif
@@ -99,3 +100,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "Entering strokes.count() = %d", strokes.count() );
+ odebug << "Entering strokes.count() = " << strokes.count() << oendl;
#endif
@@ -109,3 +110,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( QString("Candidate1 = %1").arg(QChar(candidate1.penChar->character())) );
+ odebug << "Candidate1 = " << candidate1.penChar->character() << oendl;
#endif
@@ -122,3 +123,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( QString("Candidate2 = %1").arg(QChar(candidate2.penChar->character())) );
+ odebug << "Candidate2 = " << candidate2.penChar->character() << oendl;
#endif
@@ -144,3 +145,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "** Using Candidate2" );
+ odebug << "** Using Candidate2" << oendl;
#endif
@@ -153,3 +154,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "** Using Candidate1, with erase" );
+ odebug << "** Using Candidate1, with erase" << oendl;
#endif
@@ -164,3 +165,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "** Using Candidate1" );
+ odebug << "** Using Candidate1" << oendl;
#endif
@@ -177,3 +178,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "** Using Candidate2" );
+ odebug << "** Using Candidate2" << oendl;
#endif
@@ -182,3 +183,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "** Failed" );
+ odebug << "** Failed" << oendl;
#endif
@@ -187,3 +188,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "Need more strokes" );
+ odebug << "Need more strokes" << oendl;
#endif
@@ -199,3 +200,3 @@ void QIMPenMatch::processMatches( QIMPenCharMatchList &ml )
#ifdef DEBUG_QIMPEN
- qDebug( "deleting last" );
+ odebug << "deleting last" << oendl;
#endif
@@ -230,3 +231,3 @@ void QIMPenMatch::updateWordMatch( QIMPenCharMatchList &ml )
code == Qt::Key_Tab || code == Qt::Key_Escape ) {
-// qDebug( "Word Matching: Clearing word" );
+// odebug << "Word Matching: Clearing word" << oendl;
wordChars.clear();
@@ -235,3 +236,3 @@ void QIMPenMatch::updateWordMatch( QIMPenCharMatchList &ml )
} else if ( code == Qt::Key_Backspace ) {
- //qDebug( "Word Matching: Handle backspace" );
+ //odebug << "Word Matching: Handle backspace" << oendl;
wordChars.removeLast();
@@ -283,3 +284,3 @@ void QIMPenMatch::matchWords()
for ( ; it.current(); ++it ) {
- qDebug( QString("Match word: %1").arg(it.current()->word) );
+ odebug << "Match word: " << it.current()->word << oendl;
}
@@ -287,3 +288,3 @@ void QIMPenMatch::matchWords()
}
- //qDebug( "Possibles: Good %d, total %d", goodMatches, wordMatches.count() );
+ //odebug << "Possibles: Good " << goodMatches << ", total " << wordMatches.count() << oendl;
wordMatches.sort();