| 7 | #include <QTextStream> |
| 8 | |
| 9 | static void showOpError(QWidget *parent, const QString &title, |
| 10 | bool timedOut, const QByteArray &stderr) { |
| 11 | QString detail = timedOut |
| 12 | ? "Operation timed out." |
| 13 | : QString::fromUtf8(stderr).trimmed(); |
| 14 | QMessageBox::warning(parent, title, |
| 15 | QString("Operation failed:\n\n%1").arg(detail.toHtmlEscaped())); |
| 16 | } |
| 17 | |
| 18 | bool setModuleBlacklisted(const QString &driver, bool blacklist, QWidget *parent) { |
| 19 | const QString opName = blacklist ? "disable" : "enable"; |
no outgoing calls
no test coverage detected