Give the user a hint as to how increase the output window limit

... if we have to cut off the output because the maximum amount of
characters was reached.

Change-Id: I764c0a3ac555f30d5bce5f3a1b709eec5d2ae94b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2018-10-23 16:25:29 +02:00
parent 5ebab9cd35
commit 94e3412365

View File

@@ -374,7 +374,9 @@ void OutputWindow::appendText(const QString &textIn, const QTextCharFormat &form
if (d->maxCharCount > 0 && document()->characterCount() >= d->maxCharCount) {
QTextCharFormat tmp;
tmp.setFontWeight(QFont::Bold);
d->cursor.insertText(doNewlineEnforcement(tr("Additional output omitted") + QLatin1Char('\n')), tmp);
d->cursor.insertText(doNewlineEnforcement(tr("Additional output omitted. You can increase "
"the limit in the \"Build & Run\" settings.")
+ QLatin1Char('\n')), tmp);
}
d->cursor.endEditBlock();