diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-09-13 16:38:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-09-13 16:38:23 +0000 |
| commit | 9408303fad1efd3b889f7677dd255b9437276cfc (patch) | |
| tree | 0657a5fd272ab0eb8469626d059e9d1f9f560238 /src/plugins/General/covermanager | |
| parent | d0e1f9e4e1e44dbe3372a6cdb621bf0ee9baa668 (diff) | |
| download | qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.gz qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.bz2 qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.zip | |
fixed general plugin api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2351 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/covermanager')
4 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/General/covermanager/covermanager.cpp b/src/plugins/General/covermanager/covermanager.cpp index 528c6c18d..60ef2ef6a 100644 --- a/src/plugins/General/covermanager/covermanager.cpp +++ b/src/plugins/General/covermanager/covermanager.cpp @@ -30,7 +30,7 @@ #include "coverwidget.h" #include "covermanager.h" -CoverManager::CoverManager(QObject *parent) : General(parent) +CoverManager::CoverManager(QObject *parent) : QObject(parent) { m_action = new QAction(tr("Show Cover"), this); m_action->setShortcut(tr("Ctrl+M")); diff --git a/src/plugins/General/covermanager/covermanager.h b/src/plugins/General/covermanager/covermanager.h index a235faa54..7bf5b9075 100644 --- a/src/plugins/General/covermanager/covermanager.h +++ b/src/plugins/General/covermanager/covermanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2010 by Ilya Kotov * + * Copyright (C) 2009-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -29,7 +29,7 @@ class QAction; /** @author Ilya Kotov <forkotov02@hotmail.ru> */ -class CoverManager : public General +class CoverManager : public QObject { Q_OBJECT public: diff --git a/src/plugins/General/covermanager/covermanagerfactory.cpp b/src/plugins/General/covermanager/covermanagerfactory.cpp index 126b76bbe..3f3a6271f 100644 --- a/src/plugins/General/covermanager/covermanagerfactory.cpp +++ b/src/plugins/General/covermanager/covermanagerfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Ilya Kotov * + * Copyright (C) 2009-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -34,7 +34,7 @@ const GeneralProperties CoverManagerFactory::properties() const return properties; } -General *CoverManagerFactory::create(QObject *parent) +QObject *CoverManagerFactory::create(QObject *parent) { return new CoverManager(parent); } diff --git a/src/plugins/General/covermanager/covermanagerfactory.h b/src/plugins/General/covermanager/covermanagerfactory.h index 5c825a574..143a38705 100644 --- a/src/plugins/General/covermanager/covermanagerfactory.h +++ b/src/plugins/General/covermanager/covermanagerfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Ilya Kotov * + * Copyright (C) 2009-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -32,10 +32,10 @@ class CoverManagerFactory : public QObject, public GeneralFactory { Q_OBJECT -Q_INTERFACES(GeneralFactory); +Q_INTERFACES(GeneralFactory) public: const GeneralProperties properties() const; - General *create(QObject *parent); + QObject *create(QObject *parent); QDialog *createConfigDialog(QWidget *parent); void showAbout(QWidget *parent); QTranslator *createTranslator(QObject *parent); |
