Add SQLCipher FAQ option in the Help menu

This new Help menu option only displays for SQLCipher enabled
builds.  For non-SQLCipher ones, it's not shown.

Closes #734.
This commit is contained in:
Justin Clift
2016-08-19 16:14:42 +01:00
parent fabb460abf
commit 48643430a5
3 changed files with 24 additions and 0 deletions

View File

@@ -182,6 +182,11 @@ void MainWindow::init()
// Add keyboard shortcut for "Edit Cell" dock
ui->viewMenu->actions().at(3)->setShortcut(QKeySequence(tr("Ctrl+E")));
// If we're not compiling in SQLCipher, hide it's FAQ link in the help menu
#ifndef ENABLE_SQLCIPHER
ui->actionSqlCipherFaq->setVisible(false);
#endif
// Set statusbar fields
statusEncryptionLabel = new QLabel(ui->statusbar);
statusEncryptionLabel->setEnabled(false);
@@ -1985,6 +1990,11 @@ void MainWindow::on_actionBug_report_triggered()
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/issues/new"));
}
void MainWindow::on_actionSqlCipherFaq_triggered()
{
QDesktopServices::openUrl(QUrl("https://discuss.zetetic.net/c/sqlcipher/sqlcipher-faq"));
}
void MainWindow::on_actionWebsite_triggered()
{
QDesktopServices::openUrl(QUrl("http://sqlitebrowser.org"));