Commit d5e3556a authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port QRegExp to QRegularExpression

parent 722476cb
Pipeline #29252 passed with stage
in 15 minutes and 16 seconds
......@@ -29,6 +29,7 @@
#include <QContextMenuEvent>
#include <QMenu>
#include <QClipboard>
#include <QRegularExpression>
#include <QTextBlock>
using namespace Akonadi;
......@@ -81,7 +82,7 @@ void TextBrowser::contextMenuEvent(QContextMenuEvent *event)
// no point in copying these. Internal links are always in the
// form "protocol:?argument", whereas valid external links should
// be in the form starting with "protocol://".
if (!link.contains(QRegExp(QStringLiteral("^\\w+:\\?")))) {
if (!link.contains(QRegularExpression(QStringLiteral("^\\w+:\\?")))) {
mDataToCopy = link;
// Action text matches that used in Konqueror
act->setText(i18nc("@action:inmenu Copy a link URL", "Copy Link URL"));
......@@ -124,7 +125,7 @@ void TextBrowser::contextMenuEvent(QContextMenuEvent *event)
// telephone number. See
// kdepim/kaddressbook/grantlee/grantleecontactformatter.cpp and
// kdepimlibs/akonadi/contact/standardcontactformatter.cpp
// For an item which was formatted with line breaks (as <br>
// in HTML), the returned text contains the character 0x2028
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment