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:
Ilia Sharin
2023-05-05 17:00:08 -04:00
parent 7989d89fe9
commit 67df2c1d6f
38 changed files with 135 additions and 123 deletions
+3 -3
View File
@@ -9,7 +9,7 @@
#include <QtWidgets/QScrollBar>
#include <QtWidgets/QFileDialog>
#include <QtWidgets/QMenu>
#include <QtWidgets/QAction>
#include <QAction>
#include <QtGui/QTextCursor>
#include <QtGui/QPalette>
#include <QtCore/QList>
@@ -231,7 +231,7 @@ void SeerEditorWidgetAssembly::handleText (const QString& text) {
return;
}else if (text.contains(QRegExp("^([0-9]+)\\^done,value="))) {
}else if (text.contains(QRegularExpression("^([0-9]+)\\^done,value="))) {
QString id_text = text.section('^', 0,0);
QString value_text = Seer::parseFirst(text, "value=", '"', '"', false);
@@ -251,7 +251,7 @@ void SeerEditorWidgetAssembly::handleText (const QString& text) {
return;
}
}else if (text.contains(QRegExp("^([0-9]+)\\^error,msg="))) {
}else if (text.contains(QRegularExpression("^([0-9]+)\\^error,msg="))) {
QString id_text = text.section('^', 0,0);
QString msg_text = Seer::parseFirst(text, "value=", '"', '"', false);