Port cirkuit's main.cpp to KF5
ClosedPublic

Authored by kmorwinski on Mar 3 2018, 8:33 PM.

Details

Summary

The following deprecated classes are ported to their Qt/KF5 counterparts:

  • KApplication -> QApplication
  • K4AboutData -> KAboutData
  • KCmdLinArgs -> QCommandLineParser

Translation now uses i18n(str) from KLocalizedString instead of ki18n(str).

Strings for the commandline parser are adjusted to fit current
kde scheme:

  • '+' removed from argument syntax
  • '.' added at the end of the argument description

The string parameter shortDescription passed to K(4)AboutData got
split up into shortDescription and otherText.
The html markup contained in this param looked really ugly in the
commandline output.
Now only the short markup-free text is displayed on the commandline,
while in the about dialog (visually) nothing has changed.

Diff Detail

Repository
R657 Cirkuit
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kmorwinski requested review of this revision.Mar 3 2018, 8:33 PM
kmorwinski created this revision.
asturmlechner accepted this revision.Apr 1 2018, 9:29 PM
This revision is now accepted and ready to land.Apr 1 2018, 9:29 PM
This revision was automatically updated to reflect the committed changes.