From 2f376a7ebcfc4103b50c523eff7655f619c77353 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 5 Mar 2017 17:40:01 +0000 Subject: changed command line api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7069 90c681e8-e032-0410-971d-27865f9a5e38 --- .../IncDecVolumeOption/incdecvolumeoption.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp') diff --git a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp index b94b342fd..fbd8e3ef2 100644 --- a/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp +++ b/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2016 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "incdecvolumeoption.h" @@ -38,12 +39,11 @@ bool IncDecVolumeCommandLineOption::identify(const QString & str) const return false; } -const QString IncDecVolumeCommandLineOption::helpString() const +const QStringList IncDecVolumeCommandLineOption::helpString() const { - return QString( - "--volume-inc " + tr("Increase volume by 5 steps")+"\n" - "--volume-dec " + tr("Decrease volume by 5 steps")+"\n" - ); + return QStringList() + << QString("--volume-inc") + "||" + tr("Increase volume by 5 steps") + << QString("--volume-dec") + "||" + tr("Decrease volume by 5 steps"); } QString IncDecVolumeCommandLineOption::executeCommand(const QString& opt_str, const QStringList &args) -- cgit v1.2.3-13-gbd6f