mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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:
parent
72071d108c
commit
9e28474e47
11 changed files with 41 additions and 37 deletions
|
|
@ -60,10 +60,10 @@ QString Changelog::parseChangelogFile(QString filename)
|
|||
line = c.readLine();
|
||||
text.append("<ul>");
|
||||
while(line.startsWith("*")) {
|
||||
QString t = line.remove(QRegExp("^\\*"));
|
||||
t.replace(QRegExp("FS#(\\d+)"),
|
||||
QString t = line.remove(QRegularExpression("^\\*"));
|
||||
t.replace(QRegularExpression("FS#(\\d+)"),
|
||||
"<a href='http://www.rockbox.org/tracker/task/\\1'>FS#\\1</a>");
|
||||
t.replace(QRegExp("G#(\\d+)"),
|
||||
t.replace(QRegularExpression("G#(\\d+)"),
|
||||
"<a href='http://gerrit.rockbox.org/r/\\1'>G#\\1</a>");
|
||||
text.append(QString("<li>%1</li>").arg(t));
|
||||
line = c.readLine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue