diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-28 19:57:47 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-28 20:00:29 (GMT) |
commit | 9b1f1503b7a58176f10cd34658966f440ec3a68b (patch) | |
tree | 17a498315eb6edbe811cffaae087dc57bad5ba38 /Swift | |
parent | ca35957a3090dc38cfb71496e9d2d4016bb1bc9b (diff) | |
download | swift-9b1f1503b7a58176f10cd34658966f440ec3a68b.zip swift-9b1f1503b7a58176f10cd34658966f440ec3a68b.tar.bz2 |
Enter works on login fields. #123
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 8c29847..367dc2c 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -48,6 +48,9 @@ QtLoginWindow::QtLoginWindow(const String& defaultJID, const String& defaultPass credentialsLayout->setSpacing(3); password_ = new QLineEdit(this); password_->setEchoMode(QLineEdit::Password); + connect(password_, SIGNAL(returnPressed()), this, SLOT(loginClicked())); + connect(username_, SIGNAL(returnPressed()), password_, SLOT(setFocus())); + connect(username_, SIGNAL(returnPressed()), password_, SLOT(selectAll())); credentialsLayout->addWidget(password_); certificateButton_ = new QToolButton(this); |