Skip to content

Commit

Permalink
Merge pull request #699 from laanwj/about_qt
Browse files Browse the repository at this point in the history
Add "About Qt" menu option to show built-in Qt About dialog
  • Loading branch information
gavinandresen committed Dec 19, 2011
2 parents 1f3bc1c + 01ea41b commit fc90967
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/qt/bitcoingui.cpp
Expand Up @@ -57,6 +57,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0)
{
Expand Down Expand Up @@ -209,7 +210,10 @@ void BitcoinGUI::createActions()
quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About %1").arg(qApp->applicationName()), this);
aboutAction->setToolTip(tr("Show information about Bitcoin"));
aboutAction->setMenuRole(QAction::AboutQtRole);
aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(tr("About &Qt"), this);
aboutQtAction->setToolTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setToolTip(tr("Modify configuration options for bitcoin"));
optionsAction->setMenuRole(QAction::PreferencesRole);
Expand All @@ -226,6 +230,7 @@ void BitcoinGUI::createActions()
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
connect(openBitcoinAction, SIGNAL(triggered()), this, SLOT(showNormal()));
connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));
connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));
Expand Down Expand Up @@ -253,6 +258,7 @@ void BitcoinGUI::createMenuBar()

QMenu *help = appMenuBar->addMenu(tr("&Help"));
help->addAction(aboutAction);
help->addAction(aboutQtAction);
}

void BitcoinGUI::createToolBars()
Expand Down
1 change: 1 addition & 0 deletions src/qt/bitcoingui.h
Expand Up @@ -82,6 +82,7 @@ class BitcoinGUI : public QMainWindow
QAction *exportAction;
QAction *encryptWalletAction;
QAction *changePassphraseAction;
QAction *aboutQtAction;

QSystemTrayIcon *trayIcon;
Notificator *notificator;
Expand Down

0 comments on commit fc90967

Please sign in to comment.