From: konrad Date: Sun, 3 Oct 2010 18:06:59 +0000 (+0000) Subject: make login appear where it belongs X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=cdf8f9ba75fb977200738438ec4e51c4c0fdaacc;p=konrad%2Fsmoke.git make login appear where it belongs git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@600 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- 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()));