MLogin::MLogin()
{
setWindowTitle(tr("Magic Smoke Login"));
+ setWindowFlags(windowFlags()|Qt::Window);
QVBoxLayout*vl;
setLayout(vl=new QVBoxLayout);
//create Menu Bar
connect(p,SIGNAL(clicked()),this,SLOT(startLogin()));
initProfiles();
loadProfile();
+
+ QAction *act=new QAction(this);
+ act->setShortcut(Qt::Key_Escape);
+ connect(act,SIGNAL(triggered(bool)),this,SLOT(close()));
+ addAction(act);
}
void MLogin::initProfiles()
#ifndef MAGICSMOKE_LOGIN_H
#define MAGICSMOKE_LOGIN_H
-#include <QDialog>
+#include <QWidget>
class QComboBox;
class QLineEdit;
/**login and profile configuration window*/
-class MLogin:public QDialog
+class MLogin:public QWidget
{
Q_OBJECT
public: