1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

menu links to the FAQ base and Jira

This commit is contained in:
Will Stott
2014-09-22 15:07:06 +01:00
parent 84a5ea06ee
commit 46119a115c
3 changed files with 23 additions and 0 deletions

View File

@@ -143,6 +143,8 @@ ActionCollection::initActions()
m_actionCollection[ "crashNow" ] = new QAction( "Crash now...", this );
m_actionCollection[ "whatsnew_0_8" ] = new QAction( tr( "0.8" ) , this );
m_actionCollection[ "whatsnew_0_8" ]->setMenuRole( QAction::ApplicationSpecificRole );
m_actionCollection[ "reportBug" ] = new QAction( tr( "Report a Bug" ) , this );
m_actionCollection[ "getSupport" ] = new QAction( tr( "Get Suport" ) , this );
}
@@ -179,6 +181,9 @@ ActionCollection::createMenuBar( QWidget *parent )
helpMenu->addAction( m_actionCollection[ "diagnostics" ] );
helpMenu->addAction( m_actionCollection[ "openLogfile" ] );
helpMenu->addAction( m_actionCollection[ "legalInfo" ] );
helpMenu->addAction( m_actionCollection["getSupport"] );
helpMenu->addAction( m_actionCollection["reportBug"] );
helpMenu->addSeparator();
QMenu* whatsNew = helpMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.svg" ), tr( "What's new in ..." ) );
whatsNew->setFont( TomahawkUtils::systemFont() );
whatsNew->addAction( m_actionCollection[ "whatsnew_0_8" ] );
@@ -270,6 +275,9 @@ ActionCollection::createCompactMenu( QWidget *parent )
compactMenu->addAction( m_actionCollection[ "crashNow" ] );
}
compactMenu->addSeparator();
compactMenu->addAction( m_actionCollection["getSupport"] );
compactMenu->addAction( m_actionCollection["reportBug"] );
compactMenu->addSeparator();
compactMenu->addAction( m_actionCollection[ "quit" ] );
return compactMenu;

View File

@@ -654,6 +654,8 @@ TomahawkWindow::setupSignals()
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) );
connect( ac->getAction( "reportBug" ), SIGNAL( triggered() ), SLOT( reportBug() ) );
connect( ac->getAction( "getSupport" ), SIGNAL( triggered() ), SLOT( getSupport() ) );
connect( ac->getAction( "openLogfile" ), SIGNAL( triggered() ), SLOT( openLogfile() ) );
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
@@ -1018,6 +1020,17 @@ TomahawkWindow::legalInfo()
QDesktopServices::openUrl( QUrl( "http://www.tomahawk-player.org/legal.html" ) );
}
void
TomahawkWindow::getSupport()
{
QDesktopServices::openUrl( QUrl( "http://tomahawk.uservoice.com" ) );
}
void
TomahawkWindow::reportBug()
{
QDesktopServices::openUrl( QUrl( "http://bugs.tomahawk-player.org" ) );
}
void
TomahawkWindow::openLogfile()

View File

@@ -101,6 +101,8 @@ public slots:
void showSettingsDialog();
void showDiagnosticsDialog();
void legalInfo();
void getSupport();
void reportBug();
void openLogfile();
void updateCollectionManually();
void rescanCollectionManually();