From: konrad Date: Sun, 29 Jun 2008 07:51:11 +0000 (+0000) Subject: make login more userfriendly (react on pressing enter key) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=549d81eca75d4e3483bb6408537fc8553a9e2d00;p=web%2Fkonrad%2Fsmoke.git make login more userfriendly (react on pressing enter key) git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@158 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6bb1940..9d91fc7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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;