mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
[whatsnew] Add to menu
This commit is contained in:
parent
e1413254da
commit
479afff627
src
@ -143,6 +143,8 @@ ActionCollection::initActions()
|
||||
m_actionCollection[ "checkForUpdates" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
#endif
|
||||
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 );
|
||||
}
|
||||
|
||||
|
||||
@ -175,6 +177,8 @@ ActionCollection::createMenuBar( QWidget *parent )
|
||||
helpMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
||||
QMenu* whatsNew = helpMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.png" ), tr("What's new in ..") );
|
||||
whatsNew->addAction( m_actionCollection[ "whatsnew_0_8" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||
|
||||
// Setup update check
|
||||
@ -240,6 +244,8 @@ ActionCollection::createCompactMenu( QWidget *parent )
|
||||
compactMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
||||
QMenu* whatsNew = compactMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.png" ), tr("What's new in ..") );
|
||||
whatsNew->addAction( m_actionCollection[ "whatsnew_0_8" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||
|
||||
// Setup update check
|
||||
|
@ -63,6 +63,7 @@
|
||||
#include "jobview/JobStatusModel.h"
|
||||
#include "sip/SipPlugin.h"
|
||||
#include "filemetadata/ScanManager.h"
|
||||
#include "viewpages/whatsnew_0_8/WhatsNew_0_8.h"
|
||||
|
||||
#include "Playlist.h"
|
||||
#include "Query.h"
|
||||
@ -661,6 +662,7 @@ TomahawkWindow::setupSignals()
|
||||
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
|
||||
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
||||
connect( ac->getAction( "loadXSPF" ), SIGNAL( triggered() ), SLOT( loadSpiff() ) );
|
||||
connect( ac->getAction( "whatsnew_0_8" ), SIGNAL( triggered() ), SLOT( showWhatsNew_0_8() ) );
|
||||
connect( ac->getAction( "aboutTomahawk" ), SIGNAL( triggered() ), SLOT( showAboutTomahawk() ) );
|
||||
connect( ac->getAction( "quit" ), SIGNAL( triggered() ), qApp, SLOT( quit() ) );
|
||||
connect( ac->getAction( "showOfflineSources" ), SIGNAL( triggered() ), SLOT( showOfflineSources() ) );
|
||||
@ -1343,6 +1345,13 @@ TomahawkWindow::showAboutTomahawk()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkWindow::showWhatsNew_0_8()
|
||||
{
|
||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::WHATSNEW_0_8_VIEWPAGE_NAME );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkWindow::checkForUpdates()
|
||||
{
|
||||
|
@ -127,6 +127,7 @@ private slots:
|
||||
void audioStopped();
|
||||
|
||||
void showAboutTomahawk();
|
||||
void showWhatsNew_0_8();
|
||||
void checkForUpdates();
|
||||
|
||||
void onSearch( const QString& search );
|
||||
|
Loading…
x
Reference in New Issue
Block a user