Make "Quit" menu saner

- Use 'x' for Exit shortcut
- Set Ctrl-Q as global quit key sequence
This commit is contained in:
Wladimir J. van der Laan 2011-10-09 21:06:28 +02:00
parent 8828da5f56
commit d934e7e3dd
4 changed files with 5 additions and 7 deletions

View File

@ -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);

View File

@ -351,7 +351,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
<source>&amp;Exit</source>
<source>E&amp;xit</source>
<translation>Beenden</translation>
</message>
<message>

View File

@ -372,7 +372,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
<source>&amp;Exit</source>
<source>E&amp;xit</source>
<translation>A&amp;fsluiten</translation>
</message>
<message>

View File

@ -343,7 +343,7 @@ Are you sure you wish to encrypt your wallet?</source>
</message>
<message>
<location filename="../bitcoingui.cpp" line="200"/>
<source>&amp;Exit</source>
<source>E&amp;xit</source>
<translation>Вы&amp;ход</translation>
</message>
<message>