Changeset View
Changeset View
Standalone View
Standalone View
tests/osd/main.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include <QGuiApplication> | 21 | #include <QGuiApplication> | ||
22 | #include <QCommandLineParser> | 22 | #include <QCommandLineParser> | ||
23 | 23 | | |||
24 | int main(int argc, char **argv) | 24 | int main(int argc, char **argv) | ||
25 | { | 25 | { | ||
26 | QGuiApplication app(argc, argv); | 26 | QGuiApplication app(argc, argv); | ||
27 | 27 | | |||
28 | QCommandLineOption dbus = QCommandLineOption(QStringList() << QStringLiteral("d") << "dbus", | 28 | QCommandLineOption dbus = QCommandLineOption(QStringList() << QStringLiteral("d") << QStringLiteral("dbus"), | ||
29 | QStringLiteral("Call over dbus")); | 29 | QStringLiteral("Call over dbus")); | ||
30 | QCommandLineOption outputid = QCommandLineOption(QStringList() << QStringLiteral("o") << "outputidentifiers", | 30 | QCommandLineOption outputid = QCommandLineOption(QStringList() << QStringLiteral("o") << QStringLiteral("outputidentifiers"), | ||
31 | QStringLiteral("Show output identifier")); | 31 | QStringLiteral("Show output identifier")); | ||
32 | QCommandLineOption icon = QCommandLineOption(QStringList() << QStringLiteral("i") << "icon", | 32 | QCommandLineOption icon = QCommandLineOption(QStringList() << QStringLiteral("i") << QStringLiteral("icon"), | ||
33 | QStringLiteral("Icon to use for OSD"), QStringLiteral("preferences-desktop-display-randr")); | 33 | QStringLiteral("Icon to use for OSD"), QStringLiteral("preferences-desktop-display-randr")); | ||
34 | QCommandLineOption message = QCommandLineOption(QStringList() << QStringLiteral("m") << "message", | 34 | QCommandLineOption message = QCommandLineOption(QStringList() << QStringLiteral("m") << QStringLiteral("message"), | ||
35 | QStringLiteral("Icon to use for OSD"), QStringLiteral("OSD Test")); | 35 | QStringLiteral("Icon to use for OSD"), QStringLiteral("OSD Test")); | ||
36 | QCommandLineOption selector = QCommandLineOption({ QStringLiteral("s"), QStringLiteral("selector") }, | 36 | QCommandLineOption selector = QCommandLineOption({ QStringLiteral("s"), QStringLiteral("selector") }, | ||
37 | QStringLiteral("Show new screen action selector")); | 37 | QStringLiteral("Show new screen action selector")); | ||
38 | KScreen::OsdTest osdtest; | 38 | KScreen::OsdTest osdtest; | ||
39 | QCommandLineParser parser; | 39 | QCommandLineParser parser; | ||
40 | parser.addHelpOption(); | 40 | parser.addHelpOption(); | ||
41 | parser.addOption(dbus); | 41 | parser.addOption(dbus); | ||
42 | parser.addOption(outputid); | 42 | parser.addOption(outputid); | ||
Show All 22 Lines |