diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 02:32:36 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 17:41:11 +0900 |
commit | c407c4552feb9568ca2aef8c42288e30b7d0f034 (patch) | |
tree | 9f0de3be65c9486beee229e150c214a95024f665 | |
parent | 79ebc59cc17d520d3233ff88f815e0244e8ed5b0 (diff) | |
download | tdeedu-c407c4552feb9568ca2aef8c42288e30b7d0f034.tar.gz tdeedu-c407c4552feb9568ca2aef8c42288e30b7d0f034.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 82c5609d05e453863a10f1d77a925dc1c7abdd31)
-rw-r--r-- | libtdeedu/extdate/extdatetimeedit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libtdeedu/extdate/extdatetimeedit.cpp b/libtdeedu/extdate/extdatetimeedit.cpp index 8449c044..1d67eae3 100644 --- a/libtdeedu/extdate/extdatetimeedit.cpp +++ b/libtdeedu/extdate/extdatetimeedit.cpp @@ -497,9 +497,9 @@ bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) cw->stepDown(); return TRUE; case Key_Backspace: - if ( ::tqqt_cast<ExtDateEdit*>(cw) ) + if ( ::tqt_cast<ExtDateEdit*>(cw) ) ((ExtDateEdit*)cw)->removeFirstNumber( d->focusSection() ); - else if ( ::tqqt_cast<TQTimeEdit*>(cw) ) + else if ( ::tqt_cast<TQTimeEdit*>(cw) ) ((TQTimeEdit*)cw)->removeFirstNumber( d->focusSection() ); return TRUE; case Key_Delete: @@ -513,15 +513,15 @@ bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) TQWidget *w = this; bool hadDateEdit = FALSE; while ( w ) { - if ( ::tqqt_cast<ExtDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || - ::tqqt_cast<ExtDateTimeEdit*>(w) ) + if ( ::tqt_cast<ExtDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || + ::tqt_cast<ExtDateTimeEdit*>(w) ) break; - hadDateEdit = hadDateEdit || ::tqqt_cast<ExtDateEdit*>(w); + hadDateEdit = hadDateEdit || ::tqt_cast<ExtDateEdit*>(w); w = w->parentWidget(); } if ( w ) { - if ( !::tqqt_cast<ExtDateTimeEdit*>(w) ) { + if ( !::tqt_cast<ExtDateTimeEdit*>(w) ) { w = w->parentWidget(); } else { ExtDateTimeEdit *ed = (ExtDateTimeEdit*)w; @@ -532,7 +532,7 @@ bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) ed->dateEdit()->setFocus(); return TRUE; } else { - while ( w && !::tqqt_cast<ExtDateTimeEdit*>(w) ) + while ( w && !::tqt_cast<ExtDateTimeEdit*>(w) ) w = w->parentWidget(); } } @@ -550,7 +550,7 @@ bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) repaint( rect(), FALSE ); } return TRUE; - } else if ( !txt.isEmpty() && ::tqqt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) { + } else if ( !txt.isEmpty() && ::tqt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) { // the first character of the AM/PM indicator toggles if the section has focus TQTimeEdit *te = (TQTimeEdit*)cw; TQTime time = te->time(); |