mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
parent
22a0d8f93c
commit
20025b2ffd
|
@ -13,6 +13,7 @@
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
#include <QtCore/QUrl>
|
#include <QtCore/QUrl>
|
||||||
|
#include <QtGui/QCursor>
|
||||||
#include <QtGui/QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
#include <QtGui/QWindowStateChangeEvent>
|
#include <QtGui/QWindowStateChangeEvent>
|
||||||
#include <QtWidgets/QFileDialog>
|
#include <QtWidgets/QFileDialog>
|
||||||
|
@ -103,9 +104,11 @@ void MainWindow::setFullscreen(bool fullscreen)
|
||||||
m_ui.mainContainer->removeWidget(m_display_widget);
|
m_ui.mainContainer->removeWidget(m_display_widget);
|
||||||
m_display_widget->setParent(nullptr);
|
m_display_widget->setParent(nullptr);
|
||||||
m_display_widget->showFullScreen();
|
m_display_widget->showFullScreen();
|
||||||
|
m_display_widget->setCursor(Qt::BlankCursor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
m_display_widget->setCursor(QCursor());
|
||||||
m_ui.mainContainer->insertWidget(1, m_display_widget);
|
m_ui.mainContainer->insertWidget(1, m_display_widget);
|
||||||
m_ui.mainContainer->setCurrentIndex(1);
|
m_ui.mainContainer->setCurrentIndex(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue