Git commit cf2e0086eb86f213473dae4018754c65a8d85ccf by Alex Merry. Committed on 22/12/2013 at 21:51. Pushed by alexmerry into branch 'master'.
Deprecate -n and -g options for kgendesignerplugin The [Globals] group is a better place to set these. REVIEW: 114704 M +2 -2 docs/kgendesignerplugin/man-kgendesignerplugin.1.docbook M +12 -4 src/kgendesignerplugin.cpp http://commits.kde.org/kdesignerplugin/cf2e0086eb86f213473dae4018754c65a8d85ccf diff --git a/docs/kgendesignerplugin/man-kgendesignerplugin.1.docbook b/docs/kgendesignerplugin/man-kgendesignerplugin.1.docbook index 99d4244..46318c0 100644 --- a/docs/kgendesignerplugin/man-kgendesignerplugin.1.docbook +++ b/docs/kgendesignerplugin/man-kgendesignerplugin.1.docbook @@ -86,7 +86,7 @@ Builds &Qt; widget plugins from an ini style description file. <option>-n <plugin name></option> </term> <listitem> -<para>Name of the plugin class to generate [WidgetsPlugin]</para> +<para>Name of the plugin class to generate (deprecated, use PluginName in the input file) [WidgetsPlugin]</para> </listitem> </varlistentry> <varlistentry> @@ -94,7 +94,7 @@ Builds &Qt; widget plugins from an ini style description file. <option>-g <group></option> </term> <listitem> -<para>Default widget group name to display in designer [Custom]</para> +<para>Default widget group name to display in designer (deprecated, use DefaultGroup in the input file) [Custom]</para> </listitem> </varlistentry> </variablelist> diff --git a/src/kgendesignerplugin.cpp b/src/kgendesignerplugin.cpp index 779bb0d..3366263 100644 --- a/src/kgendesignerplugin.cpp +++ b/src/kgendesignerplugin.cpp @@ -90,10 +90,18 @@ int main(int argc, char **argv) parser.addHelpOption(); //options.add("+file", QCoreApplication::translate("kgendesignerplugin about data", "Input file" ) ); parser.addOption(QCommandLineOption(QStringList() << "o", QCoreApplication::translate("main", "Output file"), "file")); - parser.addOption(QCommandLineOption(QStringList() << "n", QCoreApplication::translate("main", "Name of the plugin class to generate"), "plugin name", "WidgetsPlugin")); - parser.addOption(QCommandLineOption(QStringList() << "g", QCoreApplication::translate("main", "Default widget group name to display in designer"), "group", "Custom")); - - KAboutData about("kgendesignerplugin", 0, QCoreApplication::translate("kgendesignerplugin about data", "kgendesignerplugin"), version, description, KAboutData::License_GPL, QCoreApplication::translate("kgendesignerplugin about data", "(C) 2004-2005 Ian Reinhart Geiser"), QString(), 0, "geiseri at kde.org"); + parser.addOption(QCommandLineOption(QStringList() << "n", QCoreApplication::translate("main", "Name of the plugin class to generate (deprecated, use PluginName in the input file)."), "plugin name", "WidgetsPlugin")); + parser.addOption(QCommandLineOption(QStringList() << "g", QCoreApplication::translate("main", "Default widget group name to display in designer (deprecated, use DefaultGroup in the input file)."), "group", "Custom")); + + KAboutData about("kgendesignerplugin", 0, + QCoreApplication::translate("kgendesignerplugin about data", "kgendesignerplugin"), + version, + description, + KAboutData::License_GPL, + QCoreApplication::translate("kgendesignerplugin about data", "(C) 2004-2005 Ian Reinhart Geiser"), + QString(), + 0, + "geiseri at kde.org"); about.addAuthor(QCoreApplication::translate("kgendesignerplugin about data", "Ian Reinhart Geiser"), QString(), "geiseri at kde.org"); about.addAuthor(QCoreApplication::translate("kgendesignerplugin about data", "Daniel Molkentin"), QString(), "molkentin at kde.org"); about.setupCommandLine(&parser);
