Changeset 52732 in vbox
- Timestamp:
- Sep 12, 2014 5:30:49 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96073
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r52730 r52732 185 185 return; 186 186 187 #ifndef RT_OS_DARWIN 187 188 /* Revoke stolen focus: */ 188 189 m_pMachineView->setFocus(); 190 #else /* RT_OS_DARWIN */ 191 /* Revoke stolen activation: */ 192 activateWindow(); 193 #endif /* RT_OS_DARWIN */ 189 194 } 190 195 … … 244 249 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid())); 245 250 m_pMiniToolBar->addMenus(actionPool()->menus()); 251 #ifdef RT_OS_DARWIN 252 connect(machineLogic(), SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 253 m_pMiniToolBar, SLOT(sltHandle3DOverlayVisibilityChange(bool))); 254 #endif /* RT_OS_DARWIN */ 246 255 #ifndef RT_OS_DARWIN 247 256 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized())); … … 256 265 actionPool()->action(UIActionIndexRT_M_Machine_S_Close), SLOT(trigger())); 257 266 #endif /* !RT_OS_DARWIN */ 258 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), this, SLOT(sltRevokeFocus())); 267 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), 268 this, SLOT(sltRevokeFocus()), Qt::QueuedConnection); 259 269 } 260 270 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52730 r52732 52 52 Qt::Alignment alignment, 53 53 bool fAutoHide /* = true */) 54 : QWidget(pParent, Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) 54 : QWidget(pParent, 55 #ifndef RT_OS_DARWIN 56 Qt::Tool | Qt::WindowStaysOnTopHint | 57 #else /* RT_OS_DARWIN */ 58 Qt::Window | 59 #endif /* RT_OS_DARWIN */ 60 Qt::FramelessWindowHint) 55 61 /* Variables: General stuff: */ 56 62 , m_geometryType(geometryType) … … 204 210 void UIRuntimeMiniToolBar::prepare() 205 211 { 212 #ifdef RT_OS_DARWIN 213 /* Install own event filter: */ 214 installEventFilter(this); 215 #endif /* RT_OS_DARWIN */ 216 206 217 #ifdef VBOX_RUNTIME_UI_WITH_SHAPED_MINI_TOOLBAR 207 218 /* Make sure we have no background … … 338 349 bool UIRuntimeMiniToolBar::eventFilter(QObject *pWatched, QEvent *pEvent) 339 350 { 351 #ifndef RT_OS_DARWIN 340 352 /* Due to Qt bug QMdiArea can 341 353 * 1. steal focus from current application focus-widget … … 345 357 pEvent->type() == QEvent::FocusIn) 346 358 emit sigNotifyAboutFocusStolen(); 359 #else /* RT_OS_DARWIN */ 360 /* Due to Qt bug on Mac OS X window will be activated 361 * even if has Qt::WA_ShowWithoutActivating attribute. */ 362 if (pWatched == this && 363 pEvent->type() == QEvent::WindowActivate) 364 emit sigNotifyAboutFocusStolen(); 365 #endif /* RT_OS_DARWIN */ 347 366 /* Call to base-class: */ 348 367 return QWidget::eventFilter(pWatched, pEvent); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r52727 r52732 91 91 private slots: 92 92 93 #ifdef RT_OS_DARWIN 94 /** Handle 3D overlay visibility change. */ 95 void sltHandle3DOverlayVisibilityChange(bool fVisible) { if (fVisible) activateWindow(); } 96 #endif /* RT_OS_DARWIN */ 97 93 98 /* Handlers: Toolbar stuff: */ 94 99 void sltHandleToolbarResize();
Note:
See TracChangeset
for help on using the changeset viewer.