Add support for Qt5's native command line parser
authorManuel Nickschas <manuel.nickschas@bmw-carit.de>
Sat, 31 Jan 2015 13:13:45 +0000 (14:13 +0100)
committerManuel Nickschas <manuel.nickschas@bmw-carit.de>
Sat, 31 Jan 2015 13:13:45 +0000 (14:13 +0100)
commit985657b9e4d8b2b22a775d34320fc65d14df4858
tree359ab1e4fd9231669ae82612c8dbcc1b8a26b01f
parent399cac566c86141228358a7e7e14b2375fdc3259
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.
src/common/CMakeLists.txt
src/common/abstractcliparser.h
src/common/cliparser.cpp
src/common/main.cpp
src/common/qt5cliparser.cpp [new file with mode: 0644]
src/common/qt5cliparser.h [new file with mode: 0644]
src/uisupport/kcmdlinewrapper.cpp