| 79 | } |
| 80 | |
| 81 | static bool unserializeOptions(const QString &serializedOptions, bool *presentation, bool *print, bool *print_and_exit, bool *unique, bool *noraise, QString *page, QString *find, QString *editorCmd) |
| 82 | { |
| 83 | const QStringList args = serializedOptions.split(QStringLiteral(":")); |
| 84 | |
| 85 | if (args.count() >= 8) { |
| 86 | *presentation = args[0] == QLatin1String("1"); |
| 87 | *print = args[1] == QLatin1String("1"); |
| 88 | *print_and_exit = args[2] == QLatin1String("1"); |
| 89 | *unique = args[3] == QLatin1String("1"); |
| 90 | *noraise = args[4] == QLatin1String("1"); |
| 91 | *page = args[5]; |
| 92 | *find = args[6]; |
| 93 | *editorCmd = args[7]; |
| 94 | return true; |
| 95 | } |
| 96 | return false; |
| 97 | } |
| 98 | |
| 99 | bool startInPresentation(const QString &serializedOptions) |
| 100 | { |
no test coverage detected