aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/PlayListOption
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/CommandLineOptions/PlayListOption')
-rw-r--r--src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp8
-rw-r--r--src/plugins/CommandLineOptions/PlayListOption/playlistoption.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
index 17156c4c8..cc0ff7cf0 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
+++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
@@ -28,11 +28,10 @@
#include <qmmpui/commandlinemanager.h>
#include "playlistoption.h"
-const CommandLineProperties PlayListOption::properties() const
+CommandLineProperties PlayListOption::properties() const
{
CommandLineProperties properties;
properties.shortName = "PlayListOption";
- properties.translation = QLatin1String(":/playlist_plugin_");
properties.helpString << QString("--pl-help") + "||" + tr("Show playlist manipulation commands");
return properties;
}
@@ -146,6 +145,11 @@ QString PlayListOption::executeCommand(const QString& opt_str, const QStringList
return out;
}
+QString PlayListOption::translation() const
+{
+ return QLatin1String(":/playlist_plugin_");
+}
+
QString PlayListOption::boolToText(bool enabled)
{
return QString(enabled ? "[+]" : "[-]");
diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
index bb0e13570..22d67d048 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
+++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
@@ -36,9 +36,10 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.CommandLineOptionInterface.1.0")
Q_INTERFACES(CommandLineOption)
public:
- virtual const CommandLineProperties properties() const;
+ virtual CommandLineProperties properties() const;
virtual bool identify(const QString& opt_str) const;
virtual QString executeCommand(const QString& opt_str, const QStringList &args);
+ virtual QString translation() const;
private:
QString boolToText(bool enabled);