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/qwindowsstyle.cpp | |
parent | ae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff) | |
download | tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip |
Automated update from qt3
Diffstat (limited to 'src/styles/qwindowsstyle.cpp')
-rw-r--r-- | src/styles/qwindowsstyle.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<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; |