aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/lyrics
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/lyrics')
-rw-r--r--src/plugins/General/lyrics/lyricsfactory.cpp8
-rw-r--r--src/plugins/General/lyrics/lyricsfactory.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/General/lyrics/lyricsfactory.cpp b/src/plugins/General/lyrics/lyricsfactory.cpp
index cf1440469..1b5cac3e2 100644
--- a/src/plugins/General/lyrics/lyricsfactory.cpp
+++ b/src/plugins/General/lyrics/lyricsfactory.cpp
@@ -23,12 +23,11 @@
#include "lyrics.h"
#include "lyricsfactory.h"
-const GeneralProperties LyricsFactory::properties() const
+GeneralProperties LyricsFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Lyrics Plugin");
properties.shortName = "lyrics";
- properties.translation = QLatin1String(":/lyrics_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void LyricsFactory::showAbout(QWidget *parent)
tr("This plugin retrieves lyrics from LyricWiki")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString LyricsFactory::translation() const
+{
+ return QLatin1String(":/lyrics_plugin_");
+}
diff --git a/src/plugins/General/lyrics/lyricsfactory.h b/src/plugins/General/lyrics/lyricsfactory.h
index fdcddb897..c968329bd 100644
--- a/src/plugins/General/lyrics/lyricsfactory.h
+++ b/src/plugins/General/lyrics/lyricsfactory.h
@@ -35,10 +35,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