Skip to content

Commit

Permalink
add a few more help menu entries
Browse files Browse the repository at this point in the history
website, wiki, bug report
  • Loading branch information
rp- committed May 25, 2014
1 parent 7b9a120 commit f7315f5
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1650,3 +1650,18 @@ void MainWindow::on_butSavePlot_clicked()
}
}
}

void MainWindow::on_actionWiki_triggered()
{
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/wiki"));
}

void MainWindow::on_actionBug_report_triggered()
{
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/issues/new"));
}

void MainWindow::on_actionWebsite_triggered()
{
QDesktopServices::openUrl(QUrl("http://sqlitebrowser.org"));
}
3 changes: 3 additions & 0 deletions src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ private slots:
void on_treePlotColumns_itemChanged(QTreeWidgetItem *item, int column);
void on_treePlotColumns_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_butSavePlot_clicked();
void on_actionWiki_triggered();
void on_actionBug_report_triggered();
void on_actionWebsite_triggered();
};

#endif
30 changes: 30 additions & 0 deletions src/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,9 @@
<string>&amp;Help</string>
</property>
<addaction name="helpWhatsThisAction"/>
<addaction name="actionWebsite"/>
<addaction name="actionWiki"/>
<addaction name="actionBug_report"/>
<addaction name="helpAboutAction"/>
</widget>
<addaction name="fileMenu"/>
Expand Down Expand Up @@ -1405,6 +1408,33 @@
<string>Export table as comma separated values file</string>
</property>
</action>
<action name="actionWiki">
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/browser_open</normaloff>:/icons/browser_open</iconset>
</property>
<property name="text">
<string>&amp;Wiki...</string>
</property>
</action>
<action name="actionBug_report">
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/browser_open</normaloff>:/icons/browser_open</iconset>
</property>
<property name="text">
<string>Bug &amp;report...</string>
</property>
</action>
<action name="actionWebsite">
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/browser_open</normaloff>:/icons/browser_open</iconset>
</property>
<property name="text">
<string>Web&amp;site...</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
Expand Down
1 change: 1 addition & 0 deletions src/icons/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
<file alias="down">bullet_arrow_down.png</file>
<file alias="up">bullet_arrow_up.png</file>
<file alias="appicon">sqlitebrowser.png</file>
<file alias="browser_open">internet-web-browser.png</file>
</qresource>
</RCC>
Binary file added src/icons/internet-web-browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f7315f5

Please sign in to comment.