Desktop: Add Button and Link to 'Contribute' Page.

Add a button that opens the 'Contribute' page to the 'About' dialogue,
to encourage more users to start to contribute.

Requires https://github.com/subsurface/new-website/pull/36 to be
deployed to have a valid link target.

Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
Michael Keller 2024-02-05 11:06:12 +13:00 committed by Dirk Hohndel
parent 323dda672c
commit 1ce385b363
4 changed files with 17 additions and 2 deletions

View file

@ -30,12 +30,17 @@ void SubsurfaceAbout::on_licenseButton_clicked()
QDesktopServices::openUrl(QUrl("http://www.gnu.org/licenses/gpl-2.0.txt"));
}
void SubsurfaceAbout::on_contributeButton_clicked()
{
QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/contribute/"));
}
void SubsurfaceAbout::on_websiteButton_clicked()
{
QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org"));
QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/"));
}
void SubsurfaceAbout::on_creditButton_clicked()
{
QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/misc/credits"));
QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/credits/"));
}