QApplication requires a graphical display. With --tui, --help, --version or without a display, the terminal interface is started over QCoreApplication.
| 21 | // QApplication requires a graphical display. With --tui, --help, --version or |
| 22 | // without a display, the terminal interface is started over QCoreApplication. |
| 23 | static bool isTerminalRequested(int argc, char *argv[]) |
| 24 | { |
| 25 | for (const char *option : { "--tui", "-h", "--help", "--help-all", "-v", "--version" }) { |
| 26 | if (isOptionPassed(argc, argv, option)) |
| 27 | return true; |
| 28 | } |
| 29 | |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | int main(int argc, char *argv[]) |
| 34 | { |
no test coverage detected