aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/trackchange
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/trackchange')
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.cpp8
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/General/trackchange/trackchangefactory.cpp b/src/plugins/General/trackchange/trackchangefactory.cpp
index 806f3f073..3933983bb 100644
--- a/src/plugins/General/trackchange/trackchangefactory.cpp
+++ b/src/plugins/General/trackchange/trackchangefactory.cpp
@@ -24,12 +24,11 @@
#include "settingsdialog.h"
#include "trackchangefactory.h"
-const GeneralProperties TrackChangeFactory::properties() const
+GeneralProperties TrackChangeFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Track Change Plugin");
properties.shortName = "trackchange";
- properties.translation = QLatin1String(":/trackchange_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void TrackChangeFactory::showAbout(QWidget *parent)
tr("This plugin executes external command when current track is changed") + "\n" +
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString TrackChangeFactory::translation() const
+{
+ return QLatin1String(":/trackchange_plugin_");
+}
diff --git a/src/plugins/General/trackchange/trackchangefactory.h b/src/plugins/General/trackchange/trackchangefactory.h
index 955053a72..f8470b1b6 100644
--- a/src/plugins/General/trackchange/trackchangefactory.h
+++ b/src/plugins/General/trackchange/trackchangefactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif