Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
9adc8991
Commit
9adc8991
authored
Dec 18, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed UBPlatformUtils::showFullScreen not maximizing to full screen on OS X 10.9
parent
665945f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
UBPlatformUtils_mac.mm
src/frameworks/UBPlatformUtils_mac.mm
+16
-4
No files found.
src/frameworks/UBPlatformUtils_mac.mm
View file @
9adc8991
...
@@ -588,12 +588,24 @@ void UBPlatformUtils::setFrontProcess()
...
@@ -588,12 +588,24 @@ void UBPlatformUtils::setFrontProcess()
*/
*/
void UBPlatformUtils::showFullScreen(QWidget *pWidget)
void UBPlatformUtils::showFullScreen(QWidget *pWidget)
{
{
pWidget->showMaximized();
/* OpenBoard is designed to be run in "kiosk mode", i.e full screen.
* On OS X, we want to maximize the application while hiding the dock and menu bar,
/* On OS X, we want to hide the Dock and menu bar (aka "kiosk mode"). Qt's default behaviour
* rather than use OS X's native full screen mode (which places the window on a new desktop).
* when full-screening a QWidget is to set the dock and menu bar to auto-hide.
*
However, Qt's default behaviour
when full-screening a QWidget is to set the dock and menu bar to auto-hide.
* Since it is impossible to later set different presentation options (i.e Hide dock & menu bar)
* Since it is impossible to later set different presentation options (i.e Hide dock & menu bar)
* to NSApplication, we have to avoid calling QWidget::showFullScreen on OSX.
* to NSApplication, we have to avoid calling QWidget::showFullScreen on OSX.
*/
*/
pWidget->showMaximized();
/* Hack. On OS X 10.10, showMaximize() resizes the widget to full screen;
but on 10.9, it is placed in the "available" screen area (i.e the screen area minus
the menu bar and dock area). So we have to manually resize it to the total screen height,
and move it up to the top of the screen (0,0 position) */
QDesktopWidget * desktop = QApplication::desktop();
pWidget->resize(pWidget->width(), desktop->screenGeometry().height());
pWidget->move(0, 0);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment