| 846 | } |
| 847 | |
| 848 | void CMakeSetupDialog::error(QString const& msg) |
| 849 | { |
| 850 | this->Output->setCurrentCharFormat(this->ErrorFormat); |
| 851 | // QTextEdit will terminate the msg with a ParagraphSeparator, but it also |
| 852 | // replaces |
| 853 | // all newlines with ParagraphSeparators. By replacing the newlines by |
| 854 | // ourself, one |
| 855 | // error msg will be one paragraph. |
| 856 | QString paragraph(msg); |
| 857 | paragraph.replace(QLatin1Char('\n'), QChar::LineSeparator); |
| 858 | this->Output->append(paragraph); |
| 859 | } |
| 860 | |
| 861 | void CMakeSetupDialog::message(QString const& msg) |
| 862 | { |
no test coverage detected