mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -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"));
|
||||
|
||||
@@ -220,6 +220,7 @@ private slots:
|
||||
void on_butSavePlot_clicked();
|
||||
void on_actionWiki_triggered();
|
||||
void on_actionBug_report_triggered();
|
||||
void on_actionSqlCipherFaq_triggered();
|
||||
void on_actionWebsite_triggered();
|
||||
void updateBrowseDataColumnWidth(int section, int /*old_size*/, int new_size);
|
||||
bool loadProject(QString filename = QString());
|
||||
|
||||
@@ -888,6 +888,7 @@
|
||||
<addaction name="helpWhatsThisAction"/>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="actionWiki"/>
|
||||
<addaction name="actionSqlCipherFaq"/>
|
||||
<addaction name="actionBug_report"/>
|
||||
<addaction name="helpAboutAction"/>
|
||||
</widget>
|
||||
@@ -1933,6 +1934,18 @@
|
||||
<string>Duplicate record</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSqlCipherFaq">
|
||||
<property name="icon">
|
||||
<iconset resource="icons/icons.qrc">
|
||||
<normaloff>:/icons/browser_open</normaloff>:/icons/browser_open</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>SQLCipher FAQ...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Opens the SQLCipher FAQ in a browser window</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
||||
Reference in New Issue
Block a user