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/styles/qwindowsstyle.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/styles/qwindowsstyle.cpp') diff --git a/src/styles/qwindowsstyle.cpp b/src/styles/qwindowsstyle.cpp index b58eb9d86..e716a53e7 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(o); + TQWidget *widget = ::tqt_cast(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(o); + TQMenuBar *menuBar = ::tqt_cast(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(o); + TQMenuBar *menuBar = ::tqt_cast(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(widget) ) ) { + if ( widget && ( widget->testWFlags( WStyle_Tool ) || ::tqt_cast(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(widget); + TQMenuBar *menuBar = ::tqt_cast(widget); TQPopupMenu *popupMenu = 0; if (!menuBar) - popupMenu = ::qt_cast(widget); + popupMenu = ::tqt_cast(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(tqApp->focusWidget()); - TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->qt_cast("TQMenuData") : 0; + popupMenu = ::tqt_cast(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; -- cgit v1.2.1