mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
* Tomahawkified some sources.
This commit is contained in:
@@ -17,9 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "actioncollection.h"
|
#include "actioncollection.h"
|
||||||
#include <tomahawksettings.h>
|
#include "tomahawksettings.h"
|
||||||
#include <utils/tomahawkutils.h>
|
|
||||||
#include "audio/audioengine.h"
|
#include "audio/audioengine.h"
|
||||||
|
#include "utils/tomahawkutils.h"
|
||||||
|
|
||||||
ActionCollection* ActionCollection::s_instance = 0;
|
ActionCollection* ActionCollection::s_instance = 0;
|
||||||
ActionCollection* ActionCollection::instance()
|
ActionCollection* ActionCollection::instance()
|
||||||
@@ -53,7 +53,6 @@ ActionCollection::initActions()
|
|||||||
m_actionCollection[ "togglePrivacy" ] = privacyToggle;
|
m_actionCollection[ "togglePrivacy" ] = privacyToggle;
|
||||||
connect( m_actionCollection[ "togglePrivacy" ], SIGNAL( triggered() ), SLOT( togglePrivateListeningMode() ), Qt::UniqueConnection );
|
connect( m_actionCollection[ "togglePrivacy" ], SIGNAL( triggered() ), SLOT( togglePrivateListeningMode() ), Qt::UniqueConnection );
|
||||||
|
|
||||||
|
|
||||||
m_actionCollection[ "loadPlaylist" ] = new QAction( tr( "&Load Playlist" ), this );
|
m_actionCollection[ "loadPlaylist" ] = new QAction( tr( "&Load Playlist" ), this );
|
||||||
m_actionCollection[ "renamePlaylist" ] = new QAction( tr( "&Rename Playlist" ), this );
|
m_actionCollection[ "renamePlaylist" ] = new QAction( tr( "&Rename Playlist" ), this );
|
||||||
m_actionCollection[ "copyPlaylist" ] = new QAction( tr( "&Copy Playlist Link" ), this );
|
m_actionCollection[ "copyPlaylist" ] = new QAction( tr( "&Copy Playlist Link" ), this );
|
||||||
@@ -86,6 +85,7 @@ ActionCollection::getAction( const QString& name )
|
|||||||
return m_actionCollection.contains( name ) ? m_actionCollection[ name ] : 0;
|
return m_actionCollection.contains( name ) ? m_actionCollection[ name ] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ActionCollection::togglePrivateListeningMode()
|
ActionCollection::togglePrivateListeningMode()
|
||||||
{
|
{
|
||||||
|
@@ -21,8 +21,7 @@
|
|||||||
|
|
||||||
#include "dllmacro.h"
|
#include "dllmacro.h"
|
||||||
|
|
||||||
#include <QtGui/QAction>
|
#include <QAction>
|
||||||
|
|
||||||
|
|
||||||
class DLLEXPORT ActionCollection : public QObject
|
class DLLEXPORT ActionCollection : public QObject
|
||||||
{
|
{
|
||||||
@@ -44,7 +43,6 @@ public slots:
|
|||||||
signals:
|
signals:
|
||||||
void privacyModeChanged();
|
void privacyModeChanged();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static ActionCollection* s_instance;
|
static ActionCollection* s_instance;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user