make login more userfriendly (react on pressing enter key)
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 07:51:11 +0000 (07:51 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 29 Jun 2008 07:51:11 +0000 (07:51 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@158 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/mainwindow.cpp

index 6bb1940..9d91fc7 100644 (file)
@@ -98,6 +98,8 @@ MMainWindow::MMainWindow()
        lab->setAlignment(Qt::AlignRight);
        gl->addWidget(password=new QLineEdit,lctr,1);
        password->setEchoMode(QLineEdit::Password);
+       connect(password,SIGNAL(returnPressed()),this,SLOT(startLogin()));
+       connect(username,SIGNAL(returnPressed()),password,SLOT(setFocus()));
        gl->setRowStretch(++lctr,10);
        gl->addLayout(hl=new QHBoxLayout,++lctr,0,1,2);
        QPushButton*p;