@@ -129,6 +129,7 @@ NavCoinGUI::NavCoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
129
129
signMessageAction(0 ),
130
130
verifyMessageAction(0 ),
131
131
aboutAction(0 ),
132
+ infoAction(0 ),
132
133
receiveCoinsAction(0 ),
133
134
receiveCoinsMenuAction(0 ),
134
135
optionsAction(0 ),
@@ -419,6 +420,10 @@ void NavCoinGUI::createActions()
419
420
aboutAction->setStatusTip (tr (" Show information about %1" ).arg (tr (PACKAGE_NAME)));
420
421
aboutAction->setMenuRole (QAction::AboutRole);
421
422
aboutAction->setEnabled (false );
423
+ infoAction = new QAction (platformStyle->TextColorIcon (" :/icons/address-book" ), tr (" %1 &Knowledge Base" ).arg (tr (PACKAGE_NAME)), this );
424
+ infoAction->setStatusTip (tr (" Open the %1 Knowledge Base in your browser" ).arg (tr (PACKAGE_NAME)));
425
+ infoAction->setMenuRole (QAction::NoRole);
426
+ infoAction->setEnabled (false );
422
427
aboutQtAction = new QAction (platformStyle->TextColorIcon (" :/icons/about_qt" ), tr (" About &Qt" ), this );
423
428
aboutQtAction->setStatusTip (tr (" Show information about Qt" ));
424
429
aboutQtAction->setMenuRole (QAction::AboutQtRole);
@@ -476,6 +481,7 @@ void NavCoinGUI::createActions()
476
481
477
482
connect (quitAction, SIGNAL (triggered ()), qApp, SLOT (quit ()));
478
483
connect (aboutAction, SIGNAL (triggered ()), this , SLOT (aboutClicked ()));
484
+ connect (infoAction, SIGNAL (triggered ()), this , SLOT (infoClicked ()));
479
485
connect (aboutQtAction, SIGNAL (triggered ()), qApp, SLOT (aboutQt ()));
480
486
connect (optionsAction, SIGNAL (triggered ()), this , SLOT (optionsClicked ()));
481
487
connect (cfundProposalsAction, SIGNAL (triggered ()), this , SLOT (cfundProposalsClicked ()));
@@ -593,6 +599,7 @@ void NavCoinGUI::createMenuBar()
593
599
help->addAction (showHelpMessageAction);
594
600
help->addSeparator ();
595
601
help->addAction (aboutAction);
602
+ help->addAction (infoAction);
596
603
help->addAction (aboutQtAction);
597
604
}
598
605
@@ -913,6 +920,15 @@ void NavCoinGUI::aboutClicked()
913
920
dlg.exec ();
914
921
}
915
922
923
+ void NavCoinGUI::infoClicked ()
924
+ {
925
+ if (!clientModel)
926
+ return ;
927
+
928
+ QString link = QString (" https://info.navcoin.org/" );
929
+ QDesktopServices::openUrl (QUrl (link ));
930
+ }
931
+
916
932
void NavCoinGUI::showDebugWindow ()
917
933
{
918
934
rpcConsole->showNormal ();
@@ -1378,6 +1394,7 @@ void NavCoinGUI::showEvent(QShowEvent *event)
1378
1394
// enable the debug window when the main window shows up
1379
1395
openRPCConsoleAction->setEnabled (true );
1380
1396
aboutAction->setEnabled (true );
1397
+ infoAction->setEnabled (true );
1381
1398
optionsAction->setEnabled (true );
1382
1399
}
1383
1400
0 commit comments