highlight error URLs in logwindow

This commit is contained in:
Axel Kohlmeyer
2025-04-28 10:55:24 -04:00
parent 7151f261a0
commit db3d93210d
3 changed files with 21 additions and 1 deletions

View File

@ -32,8 +32,15 @@ protected:
void highlightBlock(const QString &text) override;
private:
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QRegExp isWarning;
QRegExp isURL;
#else
QRegularExpression isWarning;
QRegularExpression isURL;
#endif
QTextCharFormat formatWarning;
QTextCharFormat formatURL;
QLabel *summary;
QTextDocument *document;
int nwarnings, nlines;