From 82c5609d05e453863a10f1d77a925dc1c7abdd31 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:32:36 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro --- libtdeedu/extdate/extdatetimeedit.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libtdeedu') 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(cw) ) + if ( ::tqt_cast(cw) ) ((ExtDateEdit*)cw)->removeFirstNumber( d->focusSection() ); - else if ( ::tqqt_cast(cw) ) + else if ( ::tqt_cast(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(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || - ::tqqt_cast(w) ) + if ( ::tqt_cast(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || + ::tqt_cast(w) ) break; - hadDateEdit = hadDateEdit || ::tqqt_cast(w); + hadDateEdit = hadDateEdit || ::tqt_cast(w); w = w->parentWidget(); } if ( w ) { - if ( !::tqqt_cast(w) ) { + if ( !::tqt_cast(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(w) ) + while ( w && !::tqt_cast(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(cw) && focusSection() == (int) d->sectionCount()-1 ) { + } else if ( !txt.isEmpty() && ::tqt_cast(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(); -- cgit v1.2.3