Ports KApplication to QApplication, K4AboutData to KAboutData, and KCmdLineArgs to QCommandLineParser.
Also uses KDBusService instead of KUniqueApplication to prevent more than one instance running, and sets the translation domain via KLocalizedString::setApplicationDomain().
Details
Details
- Reviewers
stikonas - Group Reviewers
KDE Applications - Commits
- R433:2a901f799952: Port to QApplication
- still starts if it's not running already and accepts command line arguments (e.g. passed URLs)
- if it is running, it correctly passes the arguments to the running instance and quits
- the KGet DBUS service shows up in qdbusviewer, methods can be called
- application is translated
Diff Detail
Diff Detail
- Repository
- R433 KGet
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I would probably use more C++11 like syntax for QStringLists though... E.g. QCommandLineOption( { QLatin1String("test"), i18n("Execute Unit Testing") } );
But in any case it should work.
Comment Actions
TBH, those lines were created by the convert-kcmdlineargs.pl porting script from kde-dev-scripts...
But thanks for the hint!
I prefer to submit it as-is though, maybe I'll change that later at some point.