[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-desktop] /: Do not duplicate work of KAboutData::setupCommandLine()
From:       Laurent Montel <null () kde ! org>
Date:       2018-06-19 11:28:25
Message-ID: E1fVEoD-0006is-CX () code ! kde ! org
[Download RAW message or body]

Git commit 280249015d7e9639fcb211a23f09965ba8be2233 by Laurent Montel.
Committed on 19/06/2018 at 11:28.
Pushed by mlaurent into branch 'master'.

Do not duplicate work of KAboutData::setupCommandLine()

M  +0    -2    kcms/kfontinst/apps/Installer.cpp
M  +0    -2    kcms/kfontinst/apps/Printer.cpp
M  +0    -2    kcms/solid_actions/DesktopFileGenerator.cpp
M  +0    -2    knetattach/main.cpp

https://commits.kde.org/plasma-desktop/280249015d7e9639fcb211a23f09965ba8be=
2233

diff --git a/kcms/kfontinst/apps/Installer.cpp b/kcms/kfontinst/apps/Instal=
ler.cpp
index 6e30b7b3..a303a299 100644
--- a/kcms/kfontinst/apps/Installer.cpp
+++ b/kcms/kfontinst/apps/Installer.cpp
@@ -135,8 +135,6 @@ int main(int argc, char **argv)
     QGuiApplication::setWindowIcon(QIcon::fromTheme("preferences-desktop-f=
ont-installer"));
 =

     QCommandLineParser parser;
-    parser.addVersionOption();
-    parser.addHelpOption();
     const QCommandLineOption embedOption(QLatin1String("embed"), i18n("Mak=
es the dialog transient for an X app specified by winid"), QLatin1String("w=
inid"));
     parser.addOption(embedOption);
     parser.addPositionalArgument(QLatin1String("[URL]"), i18n("URL to inst=
all"));
diff --git a/kcms/kfontinst/apps/Printer.cpp b/kcms/kfontinst/apps/Printer.=
cpp
index 9d6fb0a8..8374104c 100644
--- a/kcms/kfontinst/apps/Printer.cpp
+++ b/kcms/kfontinst/apps/Printer.cpp
@@ -437,8 +437,6 @@ int main(int argc, char **argv)
     QGuiApplication::setWindowIcon(QIcon::fromTheme("kfontprint"));
 =

     QCommandLineParser parser;
-    parser.addVersionOption();
-    parser.addHelpOption();
     const QCommandLineOption embedOption(QLatin1String("embed"), i18n("Mak=
es the dialog transient for an X app specified by winid"), QLatin1String("w=
inid"));
     parser.addOption(embedOption);
     const QCommandLineOption sizeOption(QLatin1String("size"), i18n("Size =
index to print fonts"), QLatin1String("index"));
diff --git a/kcms/solid_actions/DesktopFileGenerator.cpp b/kcms/solid_actio=
ns/DesktopFileGenerator.cpp
index 82848bf6..43ebb8d3 100644
--- a/kcms/solid_actions/DesktopFileGenerator.cpp
+++ b/kcms/solid_actions/DesktopFileGenerator.cpp
@@ -42,8 +42,6 @@ int main( int argc, char *argv[] )
     KAboutData::setApplicationData(aboutData);
 =

     QCommandLineParser parser;
-    parser.addHelpOption();
-    parser.addVersionOption();
     aboutData.setupCommandLine(&parser);
     parser.process(application);
     aboutData.processCommandLine(&parser);
diff --git a/knetattach/main.cpp b/knetattach/main.cpp
index 2e678606..989513b7 100644
--- a/knetattach/main.cpp
+++ b/knetattach/main.cpp
@@ -36,8 +36,6 @@ int main(int argc, char **argv)
 =

     QCommandLineParser parser;
     KAboutData::setApplicationData(aboutData);
-    parser.addVersionOption();
-    parser.addHelpOption();
     aboutData.setupCommandLine(&parser);
     parser.process(app);
     aboutData.processCommandLine(&parser);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic