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
preferencesAboutTextFull
Craig Watson 10 years ago
parent 17a08d35e4
commit d1eefcf507
  1. 7
      src/frameworks/UBPlatformUtils_mac.mm

@ -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 * 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). */ * total screen height, and move it up to the top of the screen (y=0 position). */
QDesktopWidget * desktop = QApplication::desktop(); QRect currentScreenRect = QApplication::desktop()->screenGeometry(pWidget);
pWidget->resize(pWidget->width(), desktop->screenGeometry().height()); pWidget->resize(currentScreenRect.width(), currentScreenRect.height());
pWidget->move(pWidget->pos().x(), 0); pWidget->move(currentScreenRect.left(), currentScreenRect.top());
} }

Loading…
Cancel
Save