diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-10-09 21:06:28 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-10-09 21:06:28 +0200 |
commit | d934e7e3ddd7d919e58f76705439cdb15c745951 (patch) | |
tree | 4628e156de28a924e2e552f48e1db4997f0e15a1 /src/qt/bitcoingui.cpp | |
parent | 8828da5f56313855e19f463ff1c09196812b997b (diff) |
Make "Quit" menu saner
- Use 'x' for Exit shortcut
- Set Ctrl-Q as global quit key sequence
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index be10b97c0f..25261c780f 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -65,9 +65,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent): // Menus QMenu *file = menuBar()->addMenu(tr("&File")); - file->addAction(sendCoinsAction); - file->addAction(receiveCoinsAction); - file->addSeparator(); file->addAction(quitAction); QMenu *settings = menuBar()->addMenu(tr("&Settings")); @@ -197,8 +194,9 @@ void BitcoinGUI::createActions() connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage())); - quitAction = new QAction(QIcon(":/icons/quit"), tr("&Exit"), this); + quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); quitAction->setToolTip(tr("Quit application")); + quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this); aboutAction->setToolTip(tr("Show information about Bitcoin")); optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); |