mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 09:00:42 +08:00
Made adaptation to Qt6. Now it compiles without any errors and runs.
More work is required to get rid of Qt5Compat shims
This commit is contained in:
+11
-11
@@ -1,7 +1,7 @@
|
||||
#include "GdbMonitor.h"
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QProcess>
|
||||
#include <QtCore/QRegExp>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#include <QtCore/QLoggingCategory>
|
||||
#include <QtCore/QDebug>
|
||||
#include <iostream>
|
||||
@@ -97,15 +97,15 @@ void GdbMonitor::handleReadyReadStandardOutput () {
|
||||
emit ampersandTextOutput(text);
|
||||
}else if (text[0] == '@') {
|
||||
emit atsignTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\~"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\~"))) {
|
||||
emit tildeTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\="))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\="))) {
|
||||
emit equalTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\*"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\*"))) {
|
||||
emit astrixTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\^"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\^"))) {
|
||||
emit caretTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\&"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\&"))) {
|
||||
emit ampersandTextOutput(text);
|
||||
}else{
|
||||
emit textOutput(text);
|
||||
@@ -132,15 +132,15 @@ void GdbMonitor::handleTextOutput (QString text) {
|
||||
emit caretTextOutput(text);
|
||||
}else if (text[0] == '&') {
|
||||
emit ampersandTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\~"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\~"))) {
|
||||
emit tildeTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\="))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\="))) {
|
||||
emit equalTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\*"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\*"))) {
|
||||
emit astrixTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\^"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\^"))) {
|
||||
emit caretTextOutput(text);
|
||||
}else if (text.contains(QRegExp("^([0-9]+)\\&"))) {
|
||||
}else if (text.contains(QRegularExpression("^([0-9]+)\\&"))) {
|
||||
emit ampersandTextOutput(text);
|
||||
}else{
|
||||
emit textOutput(text);
|
||||
|
||||
Reference in New Issue
Block a user