Mod: replace QRegExp with QRegularExpression
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <QRegularExpression>
|
||||
#endif
|
||||
|
||||
#include "TaskDlgPathCompound.h"
|
||||
@@ -86,7 +87,7 @@ std::vector<std::string> TaskWidgetPathCompound::getList() const {
|
||||
QListWidgetItem* item = ui->PathsList->item(i);
|
||||
QString name = item->text();
|
||||
QStringList result;
|
||||
result = name.split(QRegExp(QString::fromLatin1("\\s+")));
|
||||
result = name.split(QRegularExpression(QString::fromLatin1("\\s+")));
|
||||
std::cout << result[0].toStdString() << std::endl;
|
||||
names.push_back(result[0].toStdString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user