mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Upgrade to Qt6
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
#include <QMessageBox>
|
||||
#include <QComboBox>
|
||||
#include <QLabel>
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <QtCore5Compat>
|
||||
#endif
|
||||
#include "EscapeSequenceParser.hpp"
|
||||
#include "FileDirDialog.hpp"
|
||||
#include "ExtractZip.hpp"
|
||||
@@ -537,6 +540,7 @@ void MainWindow::setTextTermFormatting(const QString& text) {
|
||||
m_inContinueNote = false;
|
||||
|
||||
m_cursor.beginEditBlock();
|
||||
// TODO: Migrate QRegExp to QRegularExpression
|
||||
QRegExp const escapeSequenceExpression(QStringLiteral(R"(\x1B\[([\d;\?FA]+)([mlh]?))"));
|
||||
QTextCharFormat defaultTextCharFormat = m_cursor.charFormat();
|
||||
int offset = escapeSequenceExpression.indexIn(text);
|
||||
|
||||
Reference in New Issue
Block a user