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:
@@ -9,7 +9,8 @@
|
||||
#include "QProcessInfo.h"
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QProcess>
|
||||
#include <QtCore/QRegExp>
|
||||
#include <QtCore5Compat/QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QDebug>
|
||||
@@ -85,7 +86,7 @@ QProcessList QProcessInfo::populate() {
|
||||
//qDebug() << line.split(QRegExp("\\s+")).at(0);
|
||||
//qDebug() << line.split(QRegExp("\\s+")).at(1);
|
||||
//qDebug() << "";
|
||||
info.setUsername(line.split(QRegExp("\\s+")).at(1));
|
||||
info.setUsername(line.split(QRegularExpression("\\s+")).at(1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user