Modernize Qt dependency path
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QLabel>
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QTextTable>
|
||||
#include <QTextCursor>
|
||||
#include <QVBoxLayout>
|
||||
@@ -52,8 +52,7 @@ HelpMessageDialog::HelpMessageDialog(QWidget* parent, bool about) : QDialog(pare
|
||||
QString licenseInfoHTML = licenseInfo;
|
||||
|
||||
// Make URLs clickable
|
||||
QRegExp uri("<(.*)>", Qt::CaseSensitive, QRegExp::RegExp2);
|
||||
uri.setMinimal(true); // use non-greedy matching
|
||||
QRegularExpression uri("<(.*?)>");
|
||||
licenseInfoHTML.replace(uri, "<a href=\"\\1\">\\1</a>");
|
||||
// Replace newlines with HTML breaks
|
||||
licenseInfoHTML.replace("\n\n", "<br><br>");
|
||||
|
||||
Reference in New Issue
Block a user