summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-28 19:57:47 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-28 20:00:29 (GMT)
commit9b1f1503b7a58176f10cd34658966f440ec3a68b (patch)
tree17a498315eb6edbe811cffaae087dc57bad5ba38
parentca35957a3090dc38cfb71496e9d2d4016bb1bc9b (diff)
downloadswift-9b1f1503b7a58176f10cd34658966f440ec3a68b.zip
swift-9b1f1503b7a58176f10cd34658966f440ec3a68b.tar.bz2
Enter works on login fields. #123
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp3
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);