diff options
author | Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> | 2011-08-19 13:45:39 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-08-19 18:59:07 (GMT) |
commit | 7c44520ffa37faa83731edd85dfe8196ba625d52 (patch) | |
tree | d21b0905c3a258f9ee11a55912517970a4b81e6f /Swift/QtUI | |
parent | dbf0abbe8648ca72a7126c24f5983b2ed4b6c94d (diff) | |
download | swift-7c44520ffa37faa83731edd85dfe8196ba625d52.zip swift-7c44520ffa37faa83731edd85dfe8196ba625d52.tar.bz2 |
Enter accepts the friend request, escape defers the decision
I know they're not called friend requests. But if I'm submitting a change
that's biased towards accepting the request, I'm behaving like facebook. So
it's a friend request and I'm a foobar. Shame on me.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtSubscriptionRequestWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSubscriptionRequestWindow.cpp b/Swift/QtUI/QtSubscriptionRequestWindow.cpp index 7828103..d22cbd0 100644 --- a/Swift/QtUI/QtSubscriptionRequestWindow.cpp +++ b/Swift/QtUI/QtSubscriptionRequestWindow.cpp @@ -28,10 +28,12 @@ QtSubscriptionRequestWindow::QtSubscriptionRequestWindow(boost::shared_ptr<Subsc layout->addWidget(okButton); } else { QPushButton* yesButton = new QPushButton(tr("Yes"), this); + yesButton->setDefault(true); connect(yesButton, SIGNAL(clicked()), this, SLOT(handleYes())); QPushButton* noButton = new QPushButton(tr("No"), this); connect(noButton, SIGNAL(clicked()), this, SLOT(handleNo())); QPushButton* deferButton = new QPushButton(tr("Defer"), this); + deferButton->setShortcut(QKeySequence(Qt::Key_Escape)); connect(deferButton, SIGNAL(clicked()), this, SLOT(handleDefer())); QHBoxLayout* buttonLayout = new QHBoxLayout(); |