summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
commiteb1d1e0dec5720ace27395e290b7093cd68b150d (patch)
tree04a199ef5ea853d86a6f9a44716c0874d41c20f6 /src/styles
parentae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff)
downloadtqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz
tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip
Automated update from qt3
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/qcommonstyle.cpp4
-rw-r--r--src/styles/qmotifplusstyle.cpp16
-rw-r--r--src/styles/qsgistyle.cpp30
-rw-r--r--src/styles/qwindowsstyle.cpp18
4 files changed, 34 insertions, 34 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index fa95124e..3510574c 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -1674,7 +1674,7 @@ void TQCommonStyle::drawComplexControl( ComplexControl control,
down = active & SC_TitleBarCloseButton;
if ( widget->testWFlags( WStyle_Tool )
#ifndef QT_NO_MAINWINDOW
- || ::qt_cast<TQDockWindow*>(widget)
+ || ::tqt_cast<TQDockWindow*>(widget)
#endif
)
pm = stylePixmap(SP_DockWindowCloseButton, widget);
@@ -2254,7 +2254,7 @@ int TQCommonStyle::pixelMetric(PixelMetric m, const TQWidget *widget) const
if ( widget->testWFlags( WStyle_Tool ) ) {
ret = TQMAX( widget->fontMetrics().lineSpacing(), 16 );
#ifndef QT_NO_MAINWINDOW
- } else if ( ::qt_cast<TQDockWindow*>(widget) ) {
+ } else if ( ::tqt_cast<TQDockWindow*>(widget) ) {
ret = TQMAX( widget->fontMetrics().lineSpacing(), 13 );
#endif
} else {
diff --git a/src/styles/qmotifplusstyle.cpp b/src/styles/qmotifplusstyle.cpp
index 528e6dce..36358792 100644
--- a/src/styles/qmotifplusstyle.cpp
+++ b/src/styles/qmotifplusstyle.cpp
@@ -179,24 +179,24 @@ void TQMotifPlusStyle::polish(TQPalette &)
void TQMotifPlusStyle::polish(TQWidget *widget)
{
#ifndef QT_NO_FRAME
- if (::qt_cast<TQFrame*>(widget) && ((TQFrame *) widget)->frameStyle() == TQFrame::Panel)
+ if (::tqt_cast<TQFrame*>(widget) && ((TQFrame *) widget)->frameStyle() == TQFrame::Panel)
((TQFrame *) widget)->setFrameStyle(TQFrame::WinPanel);
#endif
#ifndef QT_NO_MENUBAR
- if (::qt_cast<TQMenuBar*>(widget) && ((TQMenuBar *) widget)->frameStyle() != TQFrame::NoFrame)
+ if (::tqt_cast<TQMenuBar*>(widget) && ((TQMenuBar *) widget)->frameStyle() != TQFrame::NoFrame)
((TQMenuBar *) widget)->setFrameStyle(TQFrame::StyledPanel | TQFrame::Raised);
#endif
#ifndef QT_NO_TOOLBAR
- if (::qt_cast<TQToolBar*>(widget))
+ if (::tqt_cast<TQToolBar*>(widget))
widget->layout()->setMargin(2);
#endif
if (useHoveringHighlight) {
- if (::qt_cast<TQButton*>(widget) || ::qt_cast<TQComboBox*>(widget))
+ if (::tqt_cast<TQButton*>(widget) || ::tqt_cast<TQComboBox*>(widget))
widget->installEventFilter(this);
- if (::qt_cast<TQScrollBar*>(widget) || ::qt_cast<TQSlider*>(widget)) {
+ if (::tqt_cast<TQScrollBar*>(widget) || ::tqt_cast<TQSlider*>(widget)) {
widget->setMouseTracking(TRUE);
widget->installEventFilter(this);
}
@@ -1493,7 +1493,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
{
singleton->mousePressed = TRUE;
- if (!::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQSlider*>(object))
break;
singleton->sliderActive = TRUE;
@@ -1504,7 +1504,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
{
singleton->mousePressed = FALSE;
- if (!::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQSlider*>(object))
break;
singleton->sliderActive = FALSE;
@@ -1541,7 +1541,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
if (! object->isWidgetType() || object != singleton->hoverWidget)
break;
- if (!::qt_cast<TQScrollBar*>(object) && ! ::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQScrollBar*>(object) && ! ::tqt_cast<TQSlider*>(object))
break;
singleton->mousePos = ((TQMouseEvent *) event)->pos();
diff --git a/src/styles/qsgistyle.cpp b/src/styles/qsgistyle.cpp
index e09b4aa3..86dcef36 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 );
diff --git a/src/styles/qwindowsstyle.cpp b/src/styles/qwindowsstyle.cpp
index b58eb9d8..e716a53e 100644
--- a/src/styles/qwindowsstyle.cpp
+++ b/src/styles/qwindowsstyle.cpp
@@ -129,7 +129,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
if (!o->isWidgetType())
return TQObject::eventFilter(o, e);
- TQWidget *widget = ::qt_cast<TQWidget*>(o);
+ TQWidget *widget = ::tqt_cast<TQWidget*>(o);
switch(e->type()) {
case TQEvent::KeyPress:
@@ -179,7 +179,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
case TQEvent::FocusOut:
{
// Menubars toggle based on focus
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(o);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(o);
if (menuBar && !menuBarTimer) // delayed repaint to avoid flicker
menuBarTimer = menuBar->startTimer(0);
}
@@ -191,7 +191,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
break;
case TQEvent::Timer:
{
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(o);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(o);
TQTimerEvent *te = (TQTimerEvent*)e;
if (menuBar && te->timerId() == menuBarTimer) {
menuBar->killTimer(te->timerId());
@@ -1116,7 +1116,7 @@ int TQWindowsStyle::pixelMetric(PixelMetric metric, const TQWidget *widget) cons
#if defined(Q_WS_WIN)
case PM_TitleBarHeight:
- if ( widget && ( widget->testWFlags( WStyle_Tool ) || ::qt_cast<TQDockWindow*>(widget) ) ) {
+ if ( widget && ( widget->testWFlags( WStyle_Tool ) || ::tqt_cast<TQDockWindow*>(widget) ) ) {
// MS always use one less than they say
#if defined(Q_OS_TEMP)
ret = GetSystemMetrics( SM_CYCAPTION ) - 1;
@@ -2084,10 +2084,10 @@ int TQWindowsStyle::styleHint( StyleHint hint,
ret = cues ? 1 : 0;
// Do nothing if we always paint underlines
if (!ret && widget && d) {
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(widget);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(widget);
TQPopupMenu *popupMenu = 0;
if (!menuBar)
- popupMenu = ::qt_cast<TQPopupMenu*>(widget);
+ popupMenu = ::tqt_cast<TQPopupMenu*>(widget);
// If we paint a menubar draw underlines if it has focus, or if alt is down,
// or if a popup menu belonging to the menubar is active and paints underlines
@@ -2097,8 +2097,8 @@ int TQWindowsStyle::styleHint( StyleHint hint,
} else if (d->altDown()) {
ret = 1;
} else if (tqApp->focusWidget() && tqApp->focusWidget()->isPopup()) {
- popupMenu = ::qt_cast<TQPopupMenu*>(tqApp->focusWidget());
- TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->qt_cast("TQMenuData") : 0;
+ popupMenu = ::tqt_cast<TQPopupMenu*>(tqApp->focusWidget());
+ TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->tqt_cast("TQMenuData") : 0;
if (pm && ((FriendlyMenuData*)pm)->parentMenu == menuBar) {
if (d->hasSeenAlt(menuBar))
ret = 1;
@@ -2106,7 +2106,7 @@ int TQWindowsStyle::styleHint( StyleHint hint,
}
// If we paint a popup menu draw underlines if the respective menubar does
} else if (popupMenu) {
- TQMenuData *pm = (TQMenuData*)popupMenu->qt_cast("TQMenuData");
+ TQMenuData *pm = (TQMenuData*)popupMenu->tqt_cast("TQMenuData");
while (pm) {
if (((FriendlyMenuData*)pm)->isMenuBar) {
menuBar = (TQMenuBar*)pm;