mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Added openLogfile action to ActionCollection.
This commit is contained in:
@@ -124,6 +124,8 @@ ActionCollection::initActions()
|
||||
m_actionCollection[ "aboutTomahawk" ]->setMenuRole( QAction::AboutRole );
|
||||
m_actionCollection[ "legalInfo" ] = new QAction( tr( "&Legal Information..." ), this );
|
||||
m_actionCollection[ "legalInfo" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
m_actionCollection[ "openLogfile" ] = new QAction( tr( "&View Logfile" ), this );
|
||||
m_actionCollection[ "openLogfile" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE ) || defined( Q_WS_WIN )
|
||||
m_actionCollection[ "checkForUpdates" ] = new QAction( tr( "Check For Updates..." ), this );
|
||||
m_actionCollection[ "checkForUpdates" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
@@ -131,6 +133,7 @@ ActionCollection::initActions()
|
||||
m_actionCollection[ "crashNow" ] = new QAction( "Crash now...", this );
|
||||
}
|
||||
|
||||
|
||||
QMenuBar*
|
||||
ActionCollection::createMenuBar( QWidget *parent )
|
||||
{
|
||||
@@ -158,6 +161,7 @@ ActionCollection::createMenuBar( QWidget *parent )
|
||||
|
||||
QMenu* helpMenu = new QMenu( tr( "&Help" ), menuBar );
|
||||
helpMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
||||
helpMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||
|
||||
@@ -180,6 +184,7 @@ ActionCollection::createMenuBar( QWidget *parent )
|
||||
|
||||
menuBar->addMenu( controlsMenu );
|
||||
menuBar->addMenu( settingsMenu );
|
||||
|
||||
#if defined( Q_OS_MAC )
|
||||
QMenu* windowMenu = new QMenu( tr( "&Window" ), menuBar );
|
||||
windowMenu->addAction( m_actionCollection[ "minimize" ] );
|
||||
@@ -187,10 +192,12 @@ ActionCollection::createMenuBar( QWidget *parent )
|
||||
|
||||
menuBar->addMenu( windowMenu );
|
||||
#endif
|
||||
|
||||
menuBar->addMenu( helpMenu );
|
||||
return menuBar;
|
||||
}
|
||||
|
||||
|
||||
QMenu*
|
||||
ActionCollection::createCompactMenu( QWidget *parent )
|
||||
{
|
||||
@@ -218,12 +225,13 @@ ActionCollection::createCompactMenu( QWidget *parent )
|
||||
compactMenu->addSeparator();
|
||||
|
||||
compactMenu->addAction( m_actionCollection[ "diagnostics" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "openLogfile" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "legalInfo" ] );
|
||||
compactMenu->addAction( m_actionCollection[ "aboutTomahawk" ] );
|
||||
|
||||
// Setup update check
|
||||
#ifndef Q_OS_MAC
|
||||
compactMenu->insertSeparator( m_actionCollection[ "aboutTomahawk" ] );
|
||||
compactMenu->insertSeparator( m_actionCollection[ "legalInfo" ] );
|
||||
#endif
|
||||
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
|
||||
|
Reference in New Issue
Block a user