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.cpp9
-rw-r--r--src/plugins/CommandLineOptions/PlayListOption/playlistoption.h8
2 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
index 185521b3d..ff94bbcef 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
+++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011-2016 by Ilya Kotov *
+ * Copyright (C) 2011-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -40,11 +40,10 @@ bool PlayListOption::identify(const QString & str) const
str == QString("--pl-state");
}
-const QString PlayListOption::helpString() const
+const QStringList PlayListOption::helpString() const
{
- return QString(
- "--pl-help " + tr("Show playlist manipulation commands")+"\n"
- );
+ return QStringList()
+ << QString("--pl-help") + "||" + tr("Show playlist manipulation commands");
}
QString PlayListOption::executeCommand(const QString& opt_str, const QStringList &args)
diff --git a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
index 2546449a8..ea8f0d600 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
+++ b/src/plugins/CommandLineOptions/PlayListOption/playlistoption.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011 by Ilya Kotov *
+ * Copyright (C) 2011-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -35,9 +35,9 @@ class PlayListOption : public QObject, public CommandLineOption
Q_OBJECT
Q_INTERFACES(CommandLineOption)
public:
- virtual bool identify(const QString& opt_str)const;
- virtual const QString name()const;
- virtual const QString helpString()const;
+ virtual bool identify(const QString& opt_str) const;
+ virtual const QString name() const;
+ virtual const QStringList helpString() const;
virtual QString executeCommand(const QString& opt_str, const QStringList &args);
virtual QTranslator *createTranslator(QObject *parent);