forked from qt-creator/qt-creator
Debugger: Fix build with Qt6
QStringRef gone. ViewOptions changed. MetaType register stream operators automatically. Task-number: QTCREATORBUG-24098 Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -536,14 +536,14 @@ void LogWindow::showOutput(int channel, const QString &output)
|
||||
const int npos = output.indexOf(nchar, pos);
|
||||
const int nnpos = npos == -1 ? n : npos;
|
||||
const int l = nnpos - pos;
|
||||
if (l != 6 || output.midRef(pos, 6) != "(gdb) ") {
|
||||
if (l != 6 || QStringView(output).mid(pos, 6) != QLatin1String("(gdb) ")) {
|
||||
out.append(cchar);
|
||||
if (l > 30000) {
|
||||
// FIXME: QTextEdit asserts on really long lines...
|
||||
out.append(output.midRef(pos, 30000));
|
||||
out.append(output.mid(pos, 30000));
|
||||
out.append(" [...] <cut off>\n");
|
||||
} else {
|
||||
out.append(output.midRef(pos, l + 1));
|
||||
out.append(output.mid(pos, l + 1));
|
||||
}
|
||||
}
|
||||
pos = nnpos + 1;
|
||||
|
||||
Reference in New Issue
Block a user