2025-08-26 17:26:05 -05:00
|
|
|
// SPDX-FileCopyrightText: 2021 Ernie Pasveer <epasveer@att.net>
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2021-09-01 14:01:00 -05:00
|
|
|
#include "SeerTildeLogWidget.h"
|
|
|
|
|
#include "SeerUtl.h"
|
|
|
|
|
#include <QtWidgets/QScrollBar>
|
|
|
|
|
|
|
|
|
|
SeerTildeLogWidget::SeerTildeLogWidget (QWidget* parent) : SeerLogWidget(parent) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SeerTildeLogWidget::~SeerTildeLogWidget () {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SeerTildeLogWidget::processText (const QString& text) {
|
|
|
|
|
|
|
|
|
|
QString str = text.mid(1); // Remove leading "~"
|
|
|
|
|
|
|
|
|
|
if (str.front() == '"') { // Remove leading """
|
|
|
|
|
str = str.mid(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (str.back() == '"') { // Remove trailing """
|
|
|
|
|
str.chop(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
str = Seer::filterEscapes(str);
|
|
|
|
|
|
2024-05-03 15:08:37 -05:00
|
|
|
textEdit->insertPlainText(str);
|
2021-09-01 14:01:00 -05:00
|
|
|
}
|
|
|
|
|
|