aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-05 17:40:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-05 17:40:01 +0000
commit2f376a7ebcfc4103b50c523eff7655f619c77353 (patch)
tree219a408556740105141949a920bda942441e7f0d /src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
parentf731ee7de3fe936c65349d70650fe90045e79c8e (diff)
downloadqmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.tar.gz
qmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.tar.bz2
qmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.zip
changed command line api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7069 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/SeekOption/seekoption.cpp')
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.cpp13
1 files changed, 6 insertions, 7 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)