Changeset 52729 in vbox
- Timestamp:
- Sep 12, 2014 4:19:07 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96070
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52705 r52729 696 696 void UIMachineLogicFullscreen::revalidateNativeFullScreen(UIMachineWindow *pMachineWindow) 697 697 { 698 /* Make sure that is full-screen machine-window: */ 699 UIMachineWindowFullscreen *pMachineWindowFullscreen = qobject_cast<UIMachineWindowFullscreen*>(pMachineWindow); 700 AssertPtrReturnVoid(pMachineWindowFullscreen); 701 698 702 /* Make sure window is not already invalidated: */ 699 703 if (m_invalidFullscreenMachineWindows.contains(pMachineWindow)) … … 701 705 702 706 /* Ignore window if it is in 'fullscreen transition': */ 703 if ( qobject_cast<UIMachineWindowFullscreen*>(pMachineWindow)->isInFullscreenTransition())707 if (pMachineWindowFullscreen->isInFullscreenTransition()) 704 708 return; 705 709 … … 721 725 "Ask transient machine-window #%d to hide.\n", (int)uScreenID)); 722 726 727 /* Make sure mini-toolbar hidden: */ 728 pMachineWindowFullscreen->setMiniToolbarVisible(false); 729 /* Make sure window hidden: */ 723 730 pMachineWindow->hide(); 724 731 } … … 731 738 /* Make sure window have proper geometry and shown: */ 732 739 pMachineWindow->showInNecessaryMode(); 740 /* Make sure mini-toolbar shown: */ 741 pMachineWindowFullscreen->setMiniToolbarVisible(true); 733 742 } 734 743 } … … 751 760 setPresentationModeEnabled(true); 752 761 762 /* Make sure mini-toolbar hidden: */ 763 pMachineWindowFullscreen->setMiniToolbarVisible(false); 753 764 /* Make sure window have proper geometry and shown: */ 754 765 pMachineWindow->showInNecessaryMode(); … … 764 775 "Ask machine-window #%d to hide.\n", (int)uScreenID)); 765 776 777 /* Make sure mini-toolbar hidden: */ 778 pMachineWindowFullscreen->setMiniToolbarVisible(false); 779 /* Make sure window hidden: */ 766 780 pMachineWindow->hide(); 767 781 } … … 790 804 m_invalidFullscreenMachineWindows << pMachineWindow; 791 805 806 /* Make sure mini-toolbar hidden: */ 807 pMachineWindowFullscreen->setMiniToolbarVisible(false); 792 808 /* Ask window to exit 'fullscreen' mode: */ 793 809 emit sigNotifyAboutNativeFullscreenShouldBeExited(pMachineWindow); 810 return; 794 811 } 795 812 … … 801 818 "Ask machine-window #%d to adjust guest geometry.\n", (int)uScreenID)); 802 819 820 /* Make sure mini-toolbar shown: */ 821 pMachineWindowFullscreen->setMiniToolbarVisible(true); 803 822 /* Just adjust machine-view size if necessary: */ 804 823 pMachineWindow->adjustMachineViewSize(); 824 return; 805 825 } 826 827 /* Make sure mini-toolbar shown: */ 828 pMachineWindowFullscreen->setMiniToolbarVisible(true); 806 829 } 807 830 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r52727 r52729 100 100 emit sigNotifyAboutNativeFullscreenFailToEnter(); 101 101 } 102 } 103 104 void UIMachineWindowFullscreen::setMiniToolbarVisible(bool fVisible) 105 { 106 /* Make sure mini-toolbar exists: */ 107 if (!m_pMiniToolBar) 108 return; 109 /* Set mini-toolbar visibility to passed one: */ 110 m_pMiniToolBar->setVisible(fVisible); 102 111 } 103 112 #endif /* Q_WS_MAC */ … … 329 338 AssertPtrReturnVoid(pFullscreenLogic); 330 339 340 #ifdef Q_WS_MAC 341 /* ML and next using native stuff: */ 342 const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion; 343 #endif /* Q_WS_MAC */ 344 331 345 /* Make sure this window should be shown and mapped to some host-screen: */ 332 346 if (!uisession()->isScreenVisible(m_uScreenId) || … … 334 348 { 335 349 /* Hide mini-toolbar: */ 336 if (m_pMiniToolBar) 350 if ( m_pMiniToolBar 351 #ifdef Q_WS_MAC 352 && !fSupportsNativeFullScreen 353 #endif /* Q_WS_MAC */ 354 ) 337 355 m_pMiniToolBar->hide(); 338 356 /* Hide window: */ … … 360 378 /* ML and next using native stuff, so we can call for simple show(), 361 379 * Lion and previous using Qt stuff, so we should call for showFullScreen(): */ 362 const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion;363 380 if (fSupportsNativeFullScreen) 364 381 show(); … … 391 408 392 409 /* Show mini-toolbar: */ 393 if (m_pMiniToolBar) 410 if ( m_pMiniToolBar 411 #ifdef Q_WS_MAC 412 && !fSupportsNativeFullScreen 413 #endif /* Q_WS_MAC */ 414 ) 394 415 m_pMiniToolBar->show(); 395 416 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r52727 r52729 53 53 /** Mac OS X: Returns whether window is in 'fullscreen' transition. */ 54 54 bool isInFullscreenTransition() const { return m_fIsInFullscreenTransition; } 55 /** Mac OS X: Defines whether mini-toolbar should be @a fVisible. */ 56 void setMiniToolbarVisible(bool fVisible); 55 57 #endif /* Q_WS_MAC */ 56 58 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52727 r52729 288 288 /* Adjust geometry finally: */ 289 289 adjustGeometry(); 290 291 /* Show: */292 show();293 290 } 294 291
Note:
See TracChangeset
for help on using the changeset viewer.