1
0
Fork 0
forked from len0rd/rockbox

rbutil: Replace QRegExp with QRegularExpression.

The former is not part of Qt6 anymore, while the latter has been
introduced with Qt5. We don't support Qt4 anymore, so move to
QRegularExpression.

Change-Id: Icc15ef422790f3740660c5581294aa0536f46b1f
This commit is contained in:
Dominik Riebeling 2020-07-25 20:04:22 +02:00
parent 72071d108c
commit 9e28474e47
11 changed files with 41 additions and 37 deletions

View file

@ -18,6 +18,7 @@
#include <QDialog>
#include <QDir>
#include <QRegularExpression>
#include "sysinfo.h"
#include "ui_sysinfofrm.h"
#include "system.h"
@ -77,7 +78,7 @@ QString Sysinfo::getInfo(Sysinfo::InfoType type)
info += "</table>";
info += "<hr/>";
if(type == InfoText) {
info.replace(QRegExp("(<[^>]+>)+"),"\n");
info.replace(QRegularExpression("(<[^>]+>)+"), "\n");
}
return info;