Skip to content

Commit c7b1d6b

Browse files
author
Philip Kaufmann
committed
Bitcoin-Qt: ensure Qt icon is shown with Qt >= 5.0
1 parent adae2f1 commit c7b1d6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ void BitcoinGUI::createActions(bool fIsTestnet)
235235
aboutAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&About Bitcoin"), this);
236236
aboutAction->setStatusTip(tr("Show information about Bitcoin"));
237237
aboutAction->setMenuRole(QAction::AboutRole);
238+
#if QT_VERSION < 0x050000
238239
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
240+
#else
241+
aboutQtAction = new QAction(QIcon(":/qt-project.org/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
242+
#endif
239243
aboutQtAction->setStatusTip(tr("Show information about Qt"));
240244
aboutQtAction->setMenuRole(QAction::AboutQtRole);
241245
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);

0 commit comments

Comments
 (0)