Replaced various '#define' with actual strings - part 4

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/30/head
Michele Calgaro 5 months ago
parent c5bd1f2f9a
commit 82c5609d05
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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();

Loading…
Cancel
Save