| 55 | #include "FileSystem.h" |
| 56 | |
| 57 | int getConsoleMaxLines(SettingsObject* settings) |
| 58 | { |
| 59 | auto lineSetting = settings->getSetting("ConsoleMaxLines"); |
| 60 | bool conversionOk = false; |
| 61 | int maxLines = lineSetting->get().toInt(&conversionOk); |
| 62 | if (!conversionOk) { |
| 63 | maxLines = lineSetting->defValue().toInt(); |
| 64 | qWarning() << "ConsoleMaxLines has nonsensical value, defaulting to" << maxLines; |
| 65 | } |
| 66 | return maxLines; |
| 67 | } |
| 68 | |
| 69 | bool shouldStopOnConsoleOverflow(SettingsObject* settings) |
| 70 | { |
no test coverage detected