From cdf8f9ba75fb977200738438ec4e51c4c0fdaacc Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 3 Oct 2010 18:06:59 +0000 Subject: [PATCH] make login appear where it belongs git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@600 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/dialogs/login.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/dialogs/login.cpp b/src/dialogs/login.cpp index b257ac8..1648647 100644 --- a/src/dialogs/login.cpp +++ b/src/dialogs/login.cpp @@ -32,7 +32,7 @@ MLogin::MLogin() { setWindowTitle(tr("Magic Smoke Login")); - setWindowFlags(windowFlags()|Qt::Window); + setWindowFlags(windowFlags()|Qt::Window|Qt::Dialog); QVBoxLayout*vl; setLayout(vl=new QVBoxLayout); //create Menu Bar @@ -72,6 +72,7 @@ MLogin::MLogin() initProfiles(); loadProfile(); + //react to Escape button QAction *act=new QAction(this); act->setShortcut(Qt::Key_Escape); connect(act,SIGNAL(triggered(bool)),this,SLOT(close())); -- 1.7.2.5