History

Hide menu bar when fullscreen in Rift VR display mode

David Rowe committed 12 years ago

Commit ff8ea461 parent 929e4631 file · +8 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+8−0
@@ -1451,6 +1451,14 @@ void Application::checkBandwidthMeterClick() { · 1450 unmodified lines
14511451 }
14521452
14531453 void Application::setFullscreen(bool fullscreen) {
1454+ if (Menu::getInstance()->isOptionChecked(MenuOption::EnableVRMode)) {
1455+ if (fullscreen) {
1456+ // Menu show() after hide() doesn't work with Rift VR display so set height instead.
1457+ _window->menuBar()->setMaximumHeight(0);
1458+ } else {
1459+ _window->menuBar()->setMaximumHeight(QWIDGETSIZE_MAX);
1460+ }
1461+ }
14541462 _window->setWindowState(fullscreen ? (_window->windowState() | Qt::WindowFullScreen) :
14551463 (_window->windowState() & ~Qt::WindowFullScreen));
14561464 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t