| 96 | } |
| 97 | |
| 98 | int UtilityObject::exec(int timeout) |
| 99 | { |
| 100 | if (timeout > 0) { |
| 101 | QTimer::singleShot(timeout, this, [this] { exit(EXIT_FAILURE); }); |
| 102 | } |
| 103 | return QCoreApplication::exec(); |
| 104 | } |
| 105 | |
| 106 | void UtilityObject::exit(int retcode) |
| 107 | { |
no outgoing calls
no test coverage detected