summaryrefslogtreecommitdiffstats
path: root/libtdeedu/extdate/extdatetimeedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdeedu/extdate/extdatetimeedit.cpp')
-rw-r--r--libtdeedu/extdate/extdatetimeedit.cpp16
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();