aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/UninstallOption
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/UninstallOption
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/UninstallOption')
-rw-r--r--src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp10
-rw-r--r--src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h8
2 files changed, 8 insertions, 10 deletions
diff --git a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp
index 7e19020b8..14456e20b 100644
--- a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp
+++ b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2014 by Ilya Kotov *
+ * Copyright (C) 2014-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -33,12 +33,10 @@ bool UninstallOption::identify(const QString &str) const
return opts.contains(str);
}
-const QString UninstallOption::helpString() const
+const QStringList UninstallOption::helpString() const
{
- QString help;
- help += QString("--uninstall ") + tr("Restore the old file associations and clean up the registry")
- + "\n";
- return help;
+ return QStringList()
+ << QString("--uninstall") + "||" + tr("Restore the old file associations and clean up the registry");
}
QString UninstallOption::executeCommand(const QString &opt_str, const QStringList &args)
diff --git a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h
index 71e99e3b4..5787e22f9 100644
--- a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h
+++ b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2014 by Ilya Kotov *
+ * Copyright (C) 2014-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -35,9 +35,9 @@ class UninstallOption : 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);