aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mpc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/mpc')
-rw-r--r--src/plugins/Input/mpc/decodermpcfactory.cpp4
-rw-r--r--src/plugins/Input/mpc/decodermpcfactory.h2
-rw-r--r--src/plugins/Input/mpc/mpcmetadatamodel.cpp4
-rw-r--r--src/plugins/Input/mpc/mpcmetadatamodel.h5
4 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/Input/mpc/decodermpcfactory.cpp b/src/plugins/Input/mpc/decodermpcfactory.cpp
index 9161ff598..da1e17bbb 100644
--- a/src/plugins/Input/mpc/decodermpcfactory.cpp
+++ b/src/plugins/Input/mpc/decodermpcfactory.cpp
@@ -99,9 +99,9 @@ QList<TrackInfo *> DecoderMPCFactory::createPlayList(const QString &path, TrackI
return QList<TrackInfo*>() << info;
}
-MetaDataModel* DecoderMPCFactory::createMetaDataModel(const QString &path, bool readOnly, QObject *parent)
+MetaDataModel* DecoderMPCFactory::createMetaDataModel(const QString &path, bool readOnly)
{
- return new MPCMetaDataModel(path, readOnly, parent);
+ return new MPCMetaDataModel(path, readOnly);
}
void DecoderMPCFactory::showSettings(QWidget *)
diff --git a/src/plugins/Input/mpc/decodermpcfactory.h b/src/plugins/Input/mpc/decodermpcfactory.h
index 8dcf3e95b..d8caeb9e4 100644
--- a/src/plugins/Input/mpc/decodermpcfactory.h
+++ b/src/plugins/Input/mpc/decodermpcfactory.h
@@ -33,7 +33,7 @@ public:
DecoderProperties properties() const;
Decoder *create(const QString &url, QIODevice *i);
QList<TrackInfo *> createPlayList(const QString &path, TrackInfo::Parts parts, QStringList *);
- MetaDataModel* createMetaDataModel(const QString &path, bool readOnly, QObject *parent = 0);
+ MetaDataModel* createMetaDataModel(const QString &path, bool readOnly);
void showSettings(QWidget *parent);
void showAbout(QWidget *parent);
QString translation() const;
diff --git a/src/plugins/Input/mpc/mpcmetadatamodel.cpp b/src/plugins/Input/mpc/mpcmetadatamodel.cpp
index a510a32b9..fd7b56481 100644
--- a/src/plugins/Input/mpc/mpcmetadatamodel.cpp
+++ b/src/plugins/Input/mpc/mpcmetadatamodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009-2016 by Ilya Kotov *
+ * Copyright (C) 2009-2018 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -24,7 +24,7 @@
#include <taglib/apetag.h>
#include "mpcmetadatamodel.h"
-MPCMetaDataModel::MPCMetaDataModel(const QString &path, bool readOnly, QObject *parent) : MetaDataModel(readOnly, parent)
+MPCMetaDataModel::MPCMetaDataModel(const QString &path, bool readOnly) : MetaDataModel(readOnly)
{
m_stream = new TagLib::FileStream(QStringToFileName(path), readOnly);
m_file = new TagLib::MPC::File(m_stream);
diff --git a/src/plugins/Input/mpc/mpcmetadatamodel.h b/src/plugins/Input/mpc/mpcmetadatamodel.h
index 70a571f98..a37c40142 100644
--- a/src/plugins/Input/mpc/mpcmetadatamodel.h
+++ b/src/plugins/Input/mpc/mpcmetadatamodel.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2018 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -30,9 +30,8 @@ class QTextCodec;
class MPCMetaDataModel : public MetaDataModel
{
-Q_OBJECT
public:
- MPCMetaDataModel(const QString &path, bool readOnly, QObject *parent);
+ MPCMetaDataModel(const QString &path, bool readOnly);
~MPCMetaDataModel();
QList<TagModel* > tags() const;