summaryrefslogtreecommitdiffstats
path: root/libtdeedu
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:32:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 02:32:36 +0900
commit82c5609d05e453863a10f1d77a925dc1c7abdd31 (patch)
tree0ad4e39a33149fcf1f1975f23954b068d9c910c0 /libtdeedu
parentc5bd1f2f9a482db33b1a2e51ccec1533d1300a7d (diff)
downloadtdeedu-82c5609d05e453863a10f1d77a925dc1c7abdd31.tar.gz
tdeedu-82c5609d05e453863a10f1d77a925dc1c7abdd31.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libtdeedu')
-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();