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 // Menus
QMenu *file = menuBar()->addMenu(tr("&File")); QMenu *file = menuBar()->addMenu(tr("&File"));
file->addAction(sendCoinsAction);
file->addAction(receiveCoinsAction);
file->addSeparator();
file->addAction(quitAction); file->addAction(quitAction);
QMenu *settings = menuBar()->addMenu(tr("&Settings")); QMenu *settings = menuBar()->addMenu(tr("&Settings"));
@ -197,8 +194,9 @@ void BitcoinGUI::createActions()
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage())); connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage())); 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->setToolTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this); aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this);
aboutAction->setToolTip(tr("Show information about Bitcoin")); aboutAction->setToolTip(tr("Show information about Bitcoin"));
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); 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>
<message> <message>
<location filename="../bitcoingui.cpp" line="200"/> <location filename="../bitcoingui.cpp" line="200"/>
<source>&amp;Exit</source> <source>E&amp;xit</source>
<translation>Beenden</translation> <translation>Beenden</translation>
</message> </message>
<message> <message>

View File

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

View File

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