Qt: Only hide cursor in full screen

This commit is contained in:
Jeffrey Pfau 2015-05-31 19:55:05 -07:00
parent 24b1fb7b30
commit 3dc8d7d4c9
3 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,7 @@ Misc:
- Qt: Migrate multiplayer window handling into GBAApp - Qt: Migrate multiplayer window handling into GBAApp
- Qt: Unified file opening and saving with last location - Qt: Unified file opening and saving with last location
- Qt: Fix windows being resizable when they shouldn't have been - Qt: Fix windows being resizable when they shouldn't have been
- Qt: Only hide cursor in full screen
0.2.1: (2015-05-13) 0.2.1: (2015-05-13)
Bugfixes: Bugfixes:

View File

@ -16,5 +16,4 @@ Display::Display(QWidget* parent)
{ {
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS); setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
setCursor(Qt::BlankCursor);
} }

View File

@ -443,6 +443,7 @@ void Window::enterFullScreen() {
return; return;
} }
showFullScreen(); showFullScreen();
setCursor(Qt::BlankCursor);
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
if (m_controller->isLoaded() && !m_controller->isPaused()) { if (m_controller->isLoaded() && !m_controller->isPaused()) {
menuBar()->hide(); menuBar()->hide();
@ -454,6 +455,7 @@ void Window::exitFullScreen() {
if (!isFullScreen()) { if (!isFullScreen()) {
return; return;
} }
unsetCursor();
showNormal(); showNormal();
menuBar()->show(); menuBar()->show();
} }