diff --git a/src/libtomahawk/ActionCollection.cpp b/src/libtomahawk/ActionCollection.cpp index 3d333a54a..5813c2fa2 100644 --- a/src/libtomahawk/ActionCollection.cpp +++ b/src/libtomahawk/ActionCollection.cpp @@ -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 diff --git a/src/tomahawk/TomahawkWindow.cpp b/src/tomahawk/TomahawkWindow.cpp index 3ed5f231a..110be8c16 100644 --- a/src/tomahawk/TomahawkWindow.cpp +++ b/src/tomahawk/TomahawkWindow.cpp @@ -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() { diff --git a/src/tomahawk/TomahawkWindow.h b/src/tomahawk/TomahawkWindow.h index 7e8f4cbc7..54d85068a 100644 --- a/src/tomahawk/TomahawkWindow.h +++ b/src/tomahawk/TomahawkWindow.h @@ -127,6 +127,7 @@ private slots: void audioStopped(); void showAboutTomahawk(); + void showWhatsNew_0_8(); void checkForUpdates(); void onSearch( const QString& search );