1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 20:04:00 +02:00

Add link to legal page in Help menu. Note: will work properly when stage

is pushed to main, as .html differs
This commit is contained in:
Jeff Mitchell
2012-06-18 20:27:55 -04:00
parent 8f7a6de801
commit f2989dd4d9
3 changed files with 21 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
#include <QAction>
#include <QCloseEvent>
#include <QDesktopServices>
#include <QShowEvent>
#include <QHideEvent>
#include <QInputDialog>
@@ -341,6 +342,7 @@ TomahawkWindow::setupSignals()
// connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
connect( ui->actionPreferences, SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
connect( ui->actionDiagnostics, SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
connect( ui->actionLegalInfo, SIGNAL( triggered() ), SLOT( legalInfo() ) );
connect( ui->actionToggleConnect, SIGNAL( triggered() ), AccountManager::instance(), SLOT( toggleAccountsConnected() ) );
connect( ui->actionUpdateCollection, SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
connect( ui->actionRescanCollection, SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
@@ -512,13 +514,21 @@ TomahawkWindow::showSettingsDialog()
}
void TomahawkWindow::showDiagnosticsDialog()
void
TomahawkWindow::showDiagnosticsDialog()
{
DiagnosticsDialog win;
win.exec();
}
void
TomahawkWindow::legalInfo()
{
QDesktopServices::openUrl( QUrl( "http://www.tomahawk-player.org/legal.html" ) );
}
void
TomahawkWindow::updateCollectionManually()
{

View File

@@ -82,6 +82,7 @@ public slots:
void loadSpiff();
void showSettingsDialog();
void showDiagnosticsDialog();
void legalInfo();
void updateCollectionManually();
void rescanCollectionManually();
void pluginMenuAdded(QMenu*);

View File

@@ -115,6 +115,7 @@
</property>
<addaction name="actionDiagnostics"/>
<addaction name="actionAboutTomahawk"/>
<addaction name="actionLegalInfo"/>
</widget>
<addaction name="menuApp"/>
<addaction name="menuNetwork"/>
@@ -217,6 +218,14 @@
<string>Meta+Ctrl+Z</string>
</property>
</action>
<action name="actionLegalInfo">
<property name="text">
<string>&amp;Legal Info...</string>
</property>
<property name="menuRole">
<enum>QAction::ApplicationSpecificRole</enum>
</property>
</action>
<action name="actionDiagnostics">
<property name="text">
<string>Diagnostics...</string>