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:
Klaus Basan
2019-04-17 16:39:10 +02:00
parent 803e68edd3
commit b093d02f49
6 changed files with 22 additions and 6 deletions

View File

@@ -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[]);