aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/SeekOption
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/CommandLineOptions/SeekOption')
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.cpp13
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.h8
2 files changed, 10 insertions, 11 deletions
diff --git a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
index 427c99e6a..0219ddd28 100644
--- a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
+++ b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010 by Ilya Kotov *
+ * Copyright (C) 2010-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -32,13 +32,12 @@ bool SeekOption::identify(const QString &str) const
return opts.contains(str);
}
-const QString SeekOption::helpString() const
+const QStringList SeekOption::helpString() const
{
- QString help;
- help += QString("--seek <time> ") + tr("Seek to position in the current track") + "\n";
- help += QString("--seek-fwd <time> ") + tr("Seek forward") + "\n";
- help += QString("--seek-bwd <time> ") + tr("Seek backwards") + "\n";
- return help;
+ return QStringList()
+ << QString("--seek <time>") + "||" + tr("Seek to position in the current track")
+ << QString("--seek-fwd <time>") + "||" + tr("Seek forward")
+ << QString("--seek-bwd <time>") + "||" + tr("Seek backwards");
}
QString SeekOption::executeCommand(const QString &opt_str, const QStringList &args)
diff --git a/src/plugins/CommandLineOptions/SeekOption/seekoption.h b/src/plugins/CommandLineOptions/SeekOption/seekoption.h
index ed1a36dea..dca61fbe7 100644
--- a/src/plugins/CommandLineOptions/SeekOption/seekoption.h
+++ b/src/plugins/CommandLineOptions/SeekOption/seekoption.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010 by Ilya Kotov *
+ * Copyright (C) 2010-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -33,9 +33,9 @@ class SeekOption : 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);
};