diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-06 20:38:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-06 20:38:40 -0600 |
commit | eb1d1e0dec5720ace27395e290b7093cd68b150d (patch) | |
tree | 04a199ef5ea853d86a6f9a44716c0874d41c20f6 /src/widgets/qdatetimeedit.cpp | |
parent | ae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff) | |
download | tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip |
Automated update from qt3
Diffstat (limited to 'src/widgets/qdatetimeedit.cpp')
-rw-r--r-- | src/widgets/qdatetimeedit.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widgets/qdatetimeedit.cpp b/src/widgets/qdatetimeedit.cpp index e226d671e..892c1e618 100644 --- a/src/widgets/qdatetimeedit.cpp +++ b/src/widgets/qdatetimeedit.cpp @@ -423,7 +423,7 @@ public: void enabledChange(bool notenabled) { - TQDateEdit *de = ::qt_cast<TQDateEdit*>(parentWidget()); + TQDateEdit *de = ::tqt_cast<TQDateEdit*>(parentWidget()); if (de && !notenabled) { setUpEnabled(de->date() < de->maxValue()); setDownEnabled(de->date() > de->minValue()); @@ -437,7 +437,7 @@ protected: #ifndef QT_NO_WHEELEVENT void wheelEvent( TQWheelEvent *e ) { - TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->qt_cast( "TQDateTimeEditor" ); + TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->tqt_cast( "TQDateTimeEditor" ); Q_ASSERT( editor ); if ( !editor ) return; @@ -608,9 +608,9 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) cw->stepDown(); return TRUE; case Key_Backspace: - if ( ::qt_cast<TQDateEdit*>(cw) ) + if ( ::tqt_cast<TQDateEdit*>(cw) ) ((TQDateEdit*)cw)->removeFirstNumber( d->focusSection() ); - else if ( ::qt_cast<TQTimeEdit*>(cw) ) + else if ( ::tqt_cast<TQTimeEdit*>(cw) ) ((TQTimeEdit*)cw)->removeFirstNumber( d->focusSection() ); return TRUE; case Key_Delete: @@ -624,15 +624,15 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) TQWidget *w = this; bool hadDateEdit = FALSE; while ( w ) { - if ( ::qt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || - ::qt_cast<TQDateTimeEdit*>(w) ) + if ( ::tqt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 || + ::tqt_cast<TQDateTimeEdit*>(w) ) break; - hadDateEdit = hadDateEdit || ::qt_cast<TQDateEdit*>(w); + hadDateEdit = hadDateEdit || ::tqt_cast<TQDateEdit*>(w); w = w->parentWidget(); } if ( w ) { - if ( !::qt_cast<TQDateTimeEdit*>(w) ) { + if ( !::tqt_cast<TQDateTimeEdit*>(w) ) { w = w->parentWidget(); } else { TQDateTimeEdit *ed = (TQDateTimeEdit*)w; @@ -643,7 +643,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) ed->dateEdit()->setFocus(); return TRUE; } else { - while ( w && !::qt_cast<TQDateTimeEdit*>(w) ) + while ( w && !::tqt_cast<TQDateTimeEdit*>(w) ) w = w->parentWidget(); } } @@ -661,7 +661,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) repaint( rect(), FALSE ); } return TRUE; - } else if ( !txt.isEmpty() && ::qt_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(); |