Migrated to qt6.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "axis.h"
|
||||
#include "event.h"
|
||||
#include "time.h"
|
||||
#include <QRegularExpression>
|
||||
|
||||
#define sqr(a) ((a)*(a))
|
||||
#define cub(a) ((a)*(a)*(a))
|
||||
@ -31,7 +32,7 @@ bool Axis::read( QTextStream &stream ) {
|
||||
|
||||
//read in a line from the stream, and split it up into individual words
|
||||
QString input = stream.readLine().toLower();
|
||||
QRegExp regex("[\\s,]+");
|
||||
QRegularExpression regex("[\\s,]+");
|
||||
QStringList words = input.split(regex);
|
||||
|
||||
//used to assure QString->int conversions worked
|
||||
|
Reference in New Issue
Block a user