forked from qt-creator/qt-creator
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:
@@ -374,7 +374,9 @@ void OutputWindow::appendText(const QString &textIn, const QTextCharFormat &form
|
|||||||
if (d->maxCharCount > 0 && document()->characterCount() >= d->maxCharCount) {
|
if (d->maxCharCount > 0 && document()->characterCount() >= d->maxCharCount) {
|
||||||
QTextCharFormat tmp;
|
QTextCharFormat tmp;
|
||||||
tmp.setFontWeight(QFont::Bold);
|
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();
|
d->cursor.endEditBlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user