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/styles/qsgistyle.cpp | |
parent | ae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff) | |
download | tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip |
Automated update from qt3
Diffstat (limited to 'src/styles/qsgistyle.cpp')
-rw-r--r-- | src/styles/qsgistyle.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/styles/qsgistyle.cpp b/src/styles/qsgistyle.cpp index e09b4aa30..86dcef363 100644 --- a/src/styles/qsgistyle.cpp +++ b/src/styles/qsgistyle.cpp @@ -214,7 +214,7 @@ TQSGIStyle::polish( TQWidget* w ) sgiPal.setColor( TQPalette::Disabled, TQColorGroup::HighlightedText, sgiPal.disabled().base() ); } - if ( ::qt_cast<TQLineEdit*>(w) || ::qt_cast<TQTextEdit*>(w) ) { + if ( ::tqt_cast<TQLineEdit*>(w) || ::tqt_cast<TQTextEdit*>(w) ) { // different basecolor and highlighting in Q(Multi)LineEdit sgiPal.setColor( TQColorGroup::Base, TQColor(211,181,181) ); sgiPal.setColor( TQPalette::Active, TQColorGroup::Highlight, sgiPal.active().midlight() ); @@ -224,27 +224,27 @@ TQSGIStyle::polish( TQWidget* w ) sgiPal.setColor( TQPalette::Disabled, TQColorGroup::Highlight, sgiPal.disabled().midlight() ); sgiPal.setColor( TQPalette::Disabled, TQColorGroup::HighlightedText, sgiPal.disabled().text() ); - } else if ( ::qt_cast<TQMenuBar*>(w) || ::qt_cast<TQToolBar*>(w) ) { + } else if ( ::tqt_cast<TQMenuBar*>(w) || ::tqt_cast<TQToolBar*>(w) ) { sgiPal.setColor( TQColorGroup::Button, sgiPal.active().midlight() ); } w->setPalette( sgiPal ); } - if ( ::qt_cast<TQButton*>(w) || ::qt_cast<TQSlider*>(w) || ::qt_cast<TQScrollBar*>(w) ) { + if ( ::tqt_cast<TQButton*>(w) || ::tqt_cast<TQSlider*>(w) || ::tqt_cast<TQScrollBar*>(w) ) { w->installEventFilter( this ); w->setMouseTracking( TRUE ); #ifndef QT_NO_SCROLLBAR - if ( ::qt_cast<TQScrollBar*>(w) ) + if ( ::tqt_cast<TQScrollBar*>(w) ) w->setBackgroundMode( TQWidget::NoBackground ); #endif - } else if ( ::qt_cast<TQComboBox*>(w) ) { + } else if ( ::tqt_cast<TQComboBox*>(w) ) { TQFont f = TQApplication::font(); f.setBold( TRUE ); f.setItalic( TRUE ); w->setFont( f ); #ifndef QT_NO_MENUBAR - } else if ( ::qt_cast<TQMenuBar*>(w) ) { + } else if ( ::tqt_cast<TQMenuBar*>(w) ) { ((TQFrame*) w)->setFrameStyle(TQFrame::StyledPanel | TQFrame::Raised); w->setBackgroundMode( TQWidget::PaletteBackground ); TQFont f = TQApplication::font(); @@ -253,14 +253,14 @@ TQSGIStyle::polish( TQWidget* w ) w->setFont( f ); #endif #ifndef QT_NO_POPUPMENU - } else if ( ::qt_cast<TQPopupMenu*>(w) ) { + } else if ( ::tqt_cast<TQPopupMenu*>(w) ) { ((TQFrame*) w)->setLineWidth( pixelMetric( PM_DefaultFrameWidth ) + 1 ); TQFont f = TQApplication::font(); f.setBold( TRUE ); f.setItalic( TRUE ); w->setFont( f ); #endif - } else if ( ::qt_cast<TQToolBar*>(w) || w->inherits("TQToolBarSeparator") ) { + } else if ( ::tqt_cast<TQToolBar*>(w) || w->inherits("TQToolBarSeparator") ) { w->setBackgroundMode( TQWidget::PaletteBackground ); } } @@ -269,15 +269,15 @@ TQSGIStyle::polish( TQWidget* w ) void TQSGIStyle::unPolish( TQWidget* w ) { - if ( ::qt_cast<TQButton*>(w) || ::qt_cast<TQSlider*>(w) || ::qt_cast<TQScrollBar*>(w) ) { + if ( ::tqt_cast<TQButton*>(w) || ::tqt_cast<TQSlider*>(w) || ::tqt_cast<TQScrollBar*>(w) ) { w->removeEventFilter( this ); #ifndef QT_NO_POPUPMENU - } else if ( ::qt_cast<TQPopupMenu*>(w) ) { + } else if ( ::tqt_cast<TQPopupMenu*>(w) ) { ((TQFrame*)w)->setLineWidth( pixelMetric( PM_DefaultFrameWidth ) ); w->setFont( TQApplication::font() ); #endif #if !defined(QT_NO_MENUBAR) || !defined(QT_NO_COMBOBOX) - } else if ( ::qt_cast<TQMenuBar*>(w) || ::qt_cast<TQComboBox*>(w) ) { + } else if ( ::tqt_cast<TQMenuBar*>(w) || ::tqt_cast<TQComboBox*>(w) ) { w->setFont( TQApplication::font() ); #endif } @@ -295,7 +295,7 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e ) case TQEvent::MouseButtonPress: { #ifndef QT_NO_SCROLLBAR - if ( ::qt_cast<TQScrollBar*>(widget) ) { + if ( ::tqt_cast<TQScrollBar*>(widget) ) { d->lastScrollbarRect.rect = ((TQScrollBar*)widget)->sliderRect(); d->lastScrollbarRect.scrollbar = ((TQScrollBar*)widget); widget->repaint( FALSE ); @@ -303,7 +303,7 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e ) #endif { #ifndef QT_NO_SLIDER - if ( ::qt_cast<TQSlider*>(widget) ) { + if ( ::tqt_cast<TQSlider*>(widget) ) { d->lastSliderRect.rect = ((TQSlider*)widget)->sliderRect(); d->lastSliderRect.slider = ((TQSlider*)widget); widget->repaint( FALSE ); @@ -317,13 +317,13 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e ) { if ( 0 ) { #ifndef QT_NO_SCROLLBAR - } else if ( ::qt_cast<TQScrollBar*>(widget) ) { + } else if ( ::tqt_cast<TQScrollBar*>(widget) ) { TQRect oldRect = d->lastScrollbarRect.rect; d->lastScrollbarRect.rect = TQRect( 0, -1, 0, -1 ); widget->repaint( oldRect, FALSE ); #endif #ifndef QT_NO_SLIDER - } else if ( ::qt_cast<TQSlider*>(widget) ) { + } else if ( ::tqt_cast<TQSlider*>(widget) ) { TQRect oldRect = d->lastSliderRect.rect; d->lastSliderRect.rect = TQRect( 0, -1, 0, -1 ); widget->repaint( oldRect, FALSE ); |