Diffstat (limited to 'core/pim/addressbook/picker.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/picker.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/pim/addressbook/picker.cpp b/core/pim/addressbook/picker.cpp index 06dcc7d..a165451 100644 --- a/core/pim/addressbook/picker.cpp +++ b/core/pim/addressbook/picker.cpp @@ -76,16 +76,15 @@ void PickerLabel::clearLetter() } void PickerLabel::mouseReleaseEvent( QMouseEvent *e ) { QString tmpStr; - if (lastLetter != letter1 && lastLetter != letter2 && lastLetter != letter3) + if (lastLetter != letter1 && lastLetter != letter2 && lastLetter != letter3 && lastLetter != '\0') QTimer::singleShot( 0, this, SLOT(emitClearSignal()) ); - qDebug( "a" ); switch (currentLetter) { case 0: tmpStr = "<qt><font color=\"#7F0000\">"; tmpStr += letter1; tmpStr += "</font>"; tmpStr += letter2; @@ -94,13 +93,12 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent *e ) setText(tmpStr); currentLetter++; lastLetter = letter1; emit selectedLetter( letter1 ); - qDebug( "PickerLabel::mouseReleaseEvent %c", letter1 ); break; case 1: tmpStr = "<qt>"; tmpStr += letter1; tmpStr += "<font color=\"#7F0000\">"; @@ -111,13 +109,12 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent *e ) setText(tmpStr); currentLetter++; lastLetter = letter2; emit selectedLetter( letter2 ); - qDebug( "PickerLabel::mouseReleaseEvent %c", letter2 ); break; case 2: tmpStr = "<qt>"; tmpStr += letter1; tmpStr += letter2; @@ -127,13 +124,12 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent *e ) setText(tmpStr); currentLetter++; lastLetter = letter3; emit selectedLetter( letter3 ); - qDebug( "PickerLabel::mouseReleaseEvent %c", letter3 ); break; default: clearLetter(); lastLetter = '\0'; emit selectedLetter( '\0' ); @@ -225,10 +221,9 @@ void LetterPicker::clear() lblVWX->clearLetter(); lblYZ->clearLetter(); } void LetterPicker::newLetter( char letter ) { - qDebug( "LetterPicker::newLetter %c", letter ); emit letterClicked( letter ); } |