author | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
commit | b411ec2d8961d07c3e2e9aefc9e04322b7851859 (patch) (unidiff) | |
tree | 79e2a70f1ad32562456b0bfa03aa2b916095fbb0 /korganizer/ktimeedit.cpp | |
parent | 2d81c75c4ffb8f144ae58e90e68496500d07a19e (diff) | |
download | kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.zip kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.gz kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.bz2 |
qdebugcleanup
-rw-r--r-- | korganizer/ktimeedit.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/korganizer/ktimeedit.cpp b/korganizer/ktimeedit.cpp index 61a0931..df9b2fc 100644 --- a/korganizer/ktimeedit.cpp +++ b/korganizer/ktimeedit.cpp | |||
@@ -334,24 +334,22 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e) | |||
334 | subTime(QTime(1,0,0)); | 334 | subTime(QTime(1,0,0)); |
335 | break; | 335 | break; |
336 | case Key_Next: | 336 | case Key_Next: |
337 | addTime(QTime(1,0,0)); | 337 | addTime(QTime(1,0,0)); |
338 | break; | 338 | break; |
339 | case Key_Backspace: | 339 | case Key_Backspace: |
340 | qDebug("+++++++++++back "); | ||
341 | if ( cpos > 0) { | 340 | if ( cpos > 0) { |
342 | if ( cpos == 3 ) | 341 | if ( cpos == 3 ) |
343 | --cpos; | 342 | --cpos; |
344 | if ( cpos > 5) | 343 | if ( cpos > 5) |
345 | cpos = 5; | 344 | cpos = 5; |
346 | text.at( cpos-1 ) = '0'; | 345 | text.at( cpos-1 ) = '0'; |
347 | lineEdit()->setText( text ); | 346 | lineEdit()->setText( text ); |
348 | lineEdit()->setCursorPosition(--cpos); | 347 | lineEdit()->setCursorPosition(--cpos); |
349 | setSelect ( cpos , 1 ); | 348 | setSelect ( cpos , 1 ); |
350 | changedText(); | 349 | changedText(); |
351 | qDebug("---------back "); | ||
352 | } | 350 | } |
353 | break; | 351 | break; |
354 | } // switch arrows | 352 | } // switch arrows |
355 | 353 | ||
356 | // if cursor at string end, alltext market and keyEvent don't ArrowLeft -> deselect and cpos | 354 | // if cursor at string end, alltext market and keyEvent don't ArrowLeft -> deselect and cpos |
357 | if( cpos > 4 && lineEdit()->markedText().length() == 5 && e->key() != Key_Left ) { | 355 | if( cpos > 4 && lineEdit()->markedText().length() == 5 && e->key() != Key_Left ) { |