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

Add link to Transifex in Help menu

This commit is contained in:
Jason Herskowitz
2014-09-23 15:22:34 -04:00
parent 961129f202
commit 14fff53cbf
3 changed files with 11 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ ActionCollection::initActions()
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 Support" ) , this );
m_actionCollection[ "helpTranslate" ] = new QAction( tr( "Help Us Translate" ) , this );
}
@@ -183,6 +184,7 @@ ActionCollection::createMenuBar( QWidget *parent )
helpMenu->addAction( m_actionCollection[ "legalInfo" ] );
helpMenu->addAction( m_actionCollection["getSupport"] );
helpMenu->addAction( m_actionCollection["reportBug"] );
helpMenu->addAction( m_actionCollection["helpTranslate"] );
helpMenu->addSeparator();
QMenu* whatsNew = helpMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.svg" ), tr( "What's new in ..." ) );
whatsNew->setFont( TomahawkUtils::systemFont() );
@@ -277,6 +279,7 @@ ActionCollection::createCompactMenu( QWidget *parent )
compactMenu->addSeparator();
compactMenu->addAction( m_actionCollection["getSupport"] );
compactMenu->addAction( m_actionCollection["reportBug"] );
compactMenu->addAction( m_actionCollection["helpTranslate"] );
compactMenu->addSeparator();
compactMenu->addAction( m_actionCollection[ "quit" ] );

View File

@@ -656,6 +656,7 @@ TomahawkWindow::setupSignals()
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( "helpTranslate" ), SIGNAL( triggered() ), SLOT( helpTranslate() ) );
connect( ac->getAction( "openLogfile" ), SIGNAL( triggered() ), SLOT( openLogfile() ) );
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
@@ -1032,6 +1033,12 @@ TomahawkWindow::reportBug()
QDesktopServices::openUrl( QUrl( "https://bugs.tomahawk-player.org" ) );
}
void
TomahawkWindow::helpTranslate()
{
QDesktopServices::openUrl( QUrl( "https://www.transifex.com/projects/p/tomahawk/" ) );
}
void
TomahawkWindow::openLogfile()
{

View File

@@ -102,6 +102,7 @@ public slots:
void showDiagnosticsDialog();
void legalInfo();
void getSupport();
void helpTranslate();
void reportBug();
void openLogfile();
void updateCollectionManually();