From: Manuel Nickschas Date: Sat, 31 Jan 2015 13:13:45 +0000 (+0100) Subject: Add support for Qt5's native command line parser X-Git-Tag: 0.12-beta1~42 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=985657b9e4d8b2b22a775d34320fc65d14df4858;hp=985657b9e4d8b2b22a775d34320fc65d14df4858 Add support for Qt5's native command line parser Qt 5.2 finally has grown a way for parsing command line arguments, namely QCommandLineParser. According to the KF5 porting docs, this is also the preferred choice for software using KDE Frameworks. This commit adds a Qt5-based implementation for AbstractCliParser and uses that instead of our own solution if Quassel is built against Qt5. We also add support for naming the values that are shown in the --help output, as QCommandLineParser can make use of that. Once we stop supporting Qt4, the CLI parser abstraction shall be killed, simplifying things a lot. ---