mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
[whatsnew] Add to menu
This commit is contained in:
@@ -143,6 +143,8 @@ ActionCollection::initActions()
|
|||||||
m_actionCollection[ "checkForUpdates" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
m_actionCollection[ "checkForUpdates" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||||
#endif
|
#endif
|
||||||
m_actionCollection[ "crashNow" ] = new QAction( "Crash now...", this );
|
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[ "diagnostics" ] );
|
||||||
helpMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
helpMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||||
helpMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
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" ] );
|
helpMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||||
|
|
||||||
// Setup update check
|
// Setup update check
|
||||||
@@ -240,6 +244,8 @@ ActionCollection::createCompactMenu( QWidget *parent )
|
|||||||
compactMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
compactMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
||||||
compactMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
compactMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||||
compactMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
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" ] );
|
compactMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||||
|
|
||||||
// Setup update check
|
// Setup update check
|
||||||
|
@@ -63,6 +63,7 @@
|
|||||||
#include "jobview/JobStatusModel.h"
|
#include "jobview/JobStatusModel.h"
|
||||||
#include "sip/SipPlugin.h"
|
#include "sip/SipPlugin.h"
|
||||||
#include "filemetadata/ScanManager.h"
|
#include "filemetadata/ScanManager.h"
|
||||||
|
#include "viewpages/whatsnew_0_8/WhatsNew_0_8.h"
|
||||||
|
|
||||||
#include "Playlist.h"
|
#include "Playlist.h"
|
||||||
#include "Query.h"
|
#include "Query.h"
|
||||||
@@ -661,6 +662,7 @@ TomahawkWindow::setupSignals()
|
|||||||
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
|
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
|
||||||
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
||||||
connect( ac->getAction( "loadXSPF" ), SIGNAL( triggered() ), SLOT( loadSpiff() ) );
|
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( "aboutTomahawk" ), SIGNAL( triggered() ), SLOT( showAboutTomahawk() ) );
|
||||||
connect( ac->getAction( "quit" ), SIGNAL( triggered() ), qApp, SLOT( quit() ) );
|
connect( ac->getAction( "quit" ), SIGNAL( triggered() ), qApp, SLOT( quit() ) );
|
||||||
connect( ac->getAction( "showOfflineSources" ), SIGNAL( triggered() ), SLOT( showOfflineSources() ) );
|
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
|
void
|
||||||
TomahawkWindow::checkForUpdates()
|
TomahawkWindow::checkForUpdates()
|
||||||
{
|
{
|
||||||
|
@@ -127,6 +127,7 @@ private slots:
|
|||||||
void audioStopped();
|
void audioStopped();
|
||||||
|
|
||||||
void showAboutTomahawk();
|
void showAboutTomahawk();
|
||||||
|
void showWhatsNew_0_8();
|
||||||
void checkForUpdates();
|
void checkForUpdates();
|
||||||
|
|
||||||
void onSearch( const QString& search );
|
void onSearch( const QString& search );
|
||||||
|
Reference in New Issue
Block a user