connect(ui->actionAbout, &QAction::triggered, this, &MainWindow::menuAboutClicked);
connect(ui->actionOfficialWebsite, &QAction::triggered, [this](){Utils::externalLinkWarning(this, "https://featherwallet.org");});
connect(ui->actionDonate_to_Feather, &QAction::triggered, this, &MainWindow::donateButtonClicked);
+ connect(ui->actionDocumentation, &QAction::triggered, this, &MainWindow::onShowDocumentaton);
connect(ui->actionReport_bug, &QAction::triggered, this, &MainWindow::onReportBug);
connect(ui->actionShow_debug_info, &QAction::triggered, this, &MainWindow::showDebugInfo);
ui->actionSettings->setShortcut(QKeySequence("Ctrl+Alt+S"));
ui->actionUpdate_balance->setShortcut(QKeySequence("Ctrl+U"));
ui->actionShow_Searchbar->setShortcut(QKeySequence("Ctrl+F"));
+ ui->actionDocumentation->setShortcut(QKeySequence("F1"));
}
void MainWindow::initHome() {
QMessageBox::information(this, "Desktop entry", msg);
}
+void MainWindow::onShowDocumentaton() {
+ Utils::externalLinkWarning(this, "https://docs.featherwallet.org");
+}
+
void MainWindow::onReportBug(bool checked) {
- QMessageBox::information(this, "Reporting Bugs",
- "<body>Please report any bugs as issues on our git repo:<br>\n"
- "<a href=\"https://git.featherwallet.org/feather/feather/issues\" style=\"color: #33A4DF\">https://git.featherwallet.org/feather/feather/issues</a><br/><br/>"
- "\n"
- "Before reporting a bug, upgrade to the most recent version of Feather "
- "(latest release or git HEAD), and include the version number in your report. "
- "Try to explain not only what the bug is, but how it occurs.</body>");
+ Utils::externalLinkWarning(this, "https://docs.featherwallet.org/guides/report-an-issue");
}
QString MainWindow::getPlatformTag() {
<addaction name="actionOfficialWebsite"/>
<addaction name="actionDonate_to_Feather"/>
<addaction name="separator"/>
+ <addaction name="actionDocumentation"/>
<addaction name="actionReport_bug"/>
<addaction name="actionShow_debug_info"/>
</widget>
<string>Address checker</string>
</property>
</action>
+ <action name="actionDocumentation">
+ <property name="text">
+ <string>Documentation</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>