Changeset 52873 in vbox
- Timestamp:
- Sep 26, 2014 5:00:10 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r52788 r52873 185 185 return; 186 186 187 #if ndef RT_OS_DARWIN187 #if defined(Q_WS_WIN) 188 188 /* Revoke stolen focus: */ 189 189 m_pMachineView->setFocus(); 190 #el se /* RT_OS_DARWIN */190 #elif defined(Q_WS_MAC) 191 191 /* Revoke stolen activation: */ 192 192 activateWindow(); 193 #endif /* RT_OS_DARWIN*/193 #endif /* Q_WS_MAC */ 194 194 } 195 195 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r52870 r52873 71 71 return; 72 72 73 #if defined(Q_WS_WIN) 73 74 /* Revoke stolen focus: */ 74 75 m_pMachineView->setFocus(); 76 #elif defined(Q_WS_MAC) 77 /* Revoke stolen activation: */ 78 activateWindow(); 79 #endif /* Q_WS_MAC */ 75 80 } 76 81 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52872 r52873 226 226 void UIRuntimeMiniToolBar::prepare() 227 227 { 228 #ifdef RT_OS_DARWIN228 #ifdef Q_WS_MAC 229 229 /* Install own event filter: */ 230 230 installEventFilter(this); 231 #endif /* RT_OS_DARWIN*/231 #endif /* Q_WS_MAC */ 232 232 233 233 #if defined(Q_WS_MAC) || defined(Q_WS_WIN) … … 296 296 /* Make sure we have no focus: */ 297 297 m_pEmbeddedToolbar->setFocusPolicy(Qt::NoFocus); 298 #ifdef Q_WS_WIN 299 /* Install embedded-toolbar event filter: */ 298 300 m_pEmbeddedToolbar->installEventFilter(this); 301 #endif /* Q_WS_WIN */ 299 302 } 300 303 … … 365 368 bool UIRuntimeMiniToolBar::eventFilter(QObject *pWatched, QEvent *pEvent) 366 369 { 367 #if ndef RT_OS_DARWIN370 #if defined(Q_WS_WIN) 368 371 /* Due to Qt bug QMdiArea can 369 372 * 1. steal focus from current application focus-widget … … 373 376 pEvent->type() == QEvent::FocusIn) 374 377 emit sigNotifyAboutFocusStolen(); 375 #el se /* RT_OS_DARWIN */378 #elif defined(Q_WS_MAC) 376 379 /* Due to Qt bug on Mac OS X window will be activated 377 380 * even if has Qt::WA_ShowWithoutActivating attribute. */ … … 379 382 pEvent->type() == QEvent::WindowActivate) 380 383 emit sigNotifyAboutFocusStolen(); 381 #endif /* RT_OS_DARWIN */ 384 #endif /* Q_WS_MAC */ 385 382 386 /* Call to base-class: */ 383 387 return QWidget::eventFilter(pWatched, pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.