Commit d1eefcf5 authored by Craig Watson's avatar Craig Watson

Fixed widget full-screening on OS X

(widgets' size and position weren't necessarily calculated based on
their current screen, but on the entire desktop geometry)

This also fixes the skewing observed during podcast recording
parent 17a08d35
......@@ -592,10 +592,9 @@ void UBPlatformUtils::showFullScreen(QWidget *pWidget)
* 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 (y=0 position). */
QDesktopWidget * desktop = QApplication::desktop();
pWidget->resize(pWidget->width(), desktop->screenGeometry().height());
pWidget->move(pWidget->pos().x(), 0);
QRect currentScreenRect = QApplication::desktop()->screenGeometry(pWidget);
pWidget->resize(currentScreenRect.width(), currentScreenRect.height());
pWidget->move(currentScreenRect.left(), currentScreenRect.top());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment