mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Bring a modal window back to front when opening a dialog
Otherwise it can happen the modal window in background blocks the other UI.
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
#ifndef BLACKGUI_GUIAPPLICATION_H
|
||||
#define BLACKGUI_GUIAPPLICATION_H
|
||||
|
||||
#include "blackcore/application.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/enableforframelesswindow.h"
|
||||
#include "blackgui/mainwindowaccess.h"
|
||||
#include "blackgui/settings/guisettings.h"
|
||||
#include "blackgui/settings/updatenotification.h"
|
||||
#include "blackgui/enableforframelesswindow.h"
|
||||
#include "blackgui/mainwindowaccess.h"
|
||||
#include "blackgui/stylesheetutility.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackcore/application.h"
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/icons.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
@@ -266,6 +266,9 @@ namespace BlackGui
|
||||
//! \remark logical resolution, not physical resolution
|
||||
static QRect currentScreenGeometry();
|
||||
|
||||
//! Bring any modal dialog to front
|
||||
static void modalWindowToFront();
|
||||
|
||||
//! Parse scale factor if any
|
||||
static double parseScaleFactor(int argc, char *argv[]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user