Initial iteration for Qt6 port.

This commit is contained in:
Ernie Pasveer
2023-05-16 15:25:28 -05:00
parent 95d1a9179f
commit 9c49fb7f63
31 changed files with 81 additions and 268 deletions
-12
View File
@@ -12,29 +12,17 @@ void SeerTildeLogWidget::processText (const QString& text) {
QString str = text.mid(1); // Remove leading "~"
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
if (str.front() == '"') { // Remove leading """
#else
if (str.at(0) == '"') { // Remove leading """
#endif
str = str.mid(1);
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
if (str.back() == '"') { // Remove trailing """
#else
if (str.at(str.size() - 1) == '"') { // Remove trailing """
#endif
str.chop(1);
}
str = Seer::filterEscapes(str);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
if (str.back() == '\n') { // Remove trailing "\n"
#else
if (str.at(str.size() - 1) == '\n') { // Remove trailing "\n"
#endif
str.chop(1);
}