From e9eb8c4a421c2c406e1ada4c866b2ae9268d647d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Oct 2015 17:10:30 +0200 Subject: [pwgui] Also use the grayed out fake background --- src/pwgui/pwgui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pwgui/pwgui.cpp') diff --git a/src/pwgui/pwgui.cpp b/src/pwgui/pwgui.cpp index 193341b..b6130f0 100644 --- a/src/pwgui/pwgui.cpp +++ b/src/pwgui/pwgui.cpp @@ -29,6 +29,9 @@ PwGui::~PwGui() void PwGui::initializeUI(char *user) { ui->setupUi(this); + this->setWindowModality(Qt::ApplicationModal); + // Put always on top + this->setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint); // Prefill username if (user != NULL) { @@ -41,8 +44,6 @@ void PwGui::initializeUI(char *user) /* Main Window properties */ - // Disable close button - this->setWindowFlags((this->windowFlags() & ~Qt::WindowCloseButtonHint) | Qt::WindowStaysOnTopHint); // center dialog on screen center QRect desktopRect = QApplication::desktop()->screenGeometry(this); this->move( desktopRect.width()/2-this->width()/2, -- cgit v1.2.3-55-g7522