mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Merged in filnet/librepilot/LP-303_fix_full_screen_mode_on_windows (pull request #501)
LP-303 workaround issue with full screen mode on windows Approved-by: Philippe Renon <philippe_renon@yahoo.fr> Approved-by: Lalanne Laurent <f5soh@free.fr>
This commit is contained in:
commit
8a729ce94b
@ -88,6 +88,10 @@
|
||||
#include <QDir>
|
||||
#include <QMimeData>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <QtPlatformHeaders/QWindowsWindowFunctions>
|
||||
#endif
|
||||
|
||||
using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
|
||||
@ -1337,6 +1341,9 @@ void MainWindow::setFullScreen(bool on)
|
||||
}
|
||||
|
||||
if (on) {
|
||||
#ifdef Q_OS_WIN
|
||||
QWindowsWindowFunctions::setHasBorderInFullScreen(windowHandle(), true);
|
||||
#endif
|
||||
setWindowState(windowState() | Qt::WindowFullScreen);
|
||||
} else {
|
||||
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user