From eb1d1e0dec5720ace27395e290b7093cd68b150d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Mar 2012 20:38:40 -0600 Subject: Automated update from qt3 --- src/widgets/qpushbutton.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/widgets/qpushbutton.cpp') diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp index 09e57b119..3e3925ab7 100644 --- a/src/widgets/qpushbutton.cpp +++ b/src/widgets/qpushbutton.cpp @@ -335,7 +335,7 @@ void TQPushButton::init() hasMenuArrow = FALSE; flt = FALSE; #ifndef QT_NO_DIALOG - autoDefButton = ::qt_cast(topLevelWidget()) != 0; + autoDefButton = ::tqt_cast(topLevelWidget()) != 0; #else autoDefButton = FALSE; #endif @@ -389,7 +389,7 @@ void TQPushButton::setDefault( bool enable ) return; // no change defButton = enable; #ifndef QT_NO_DIALOG - if ( defButton && ::qt_cast(topLevelWidget()) ) + if ( defButton && ::tqt_cast(topLevelWidget()) ) ((TQDialog*)topLevelWidget())->setMainDefault( this ); #endif update(); @@ -613,7 +613,7 @@ void TQPushButton::focusInEvent( TQFocusEvent *e ) if (autoDefButton && !defButton) { defButton = TRUE; #ifndef QT_NO_DIALOG - if ( defButton && ::qt_cast(topLevelWidget()) ) + if ( defButton && ::tqt_cast(topLevelWidget()) ) ((TQDialog*)topLevelWidget())->setDefault( this ); #endif } @@ -627,7 +627,7 @@ void TQPushButton::focusOutEvent( TQFocusEvent *e ) { #ifndef QT_NO_DIALOG if ( defButton && autoDefButton ) { - if ( ::qt_cast(topLevelWidget()) ) + if ( ::tqt_cast(topLevelWidget()) ) ((TQDialog*)topLevelWidget())->setDefault( 0 ); } #endif @@ -706,7 +706,7 @@ void TQPushButton::popupPressed() bool horizontal = TRUE; bool topLeft = TRUE; // ### always TRUE #ifndef QT_NO_TOOLBAR - TQToolBar *tb = ::qt_cast(parentWidget()); + TQToolBar *tb = ::tqt_cast(parentWidget()); if ( tb && tb->orientation() == Vertical ) horizontal = FALSE; #endif -- cgit v1.2.1