Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit deb58858 authored by Laurent Montel's avatar Laurent Montel 😁

Port to QRegularExpression

parent 8c1ffd83
......@@ -2465,7 +2465,7 @@ bool View::event(QEvent *e)
if (d->mAggregation->threading() != Aggregation::NoThreading) {
switch (d->mAggregation->threadLeader()) {
case Aggregation::TopmostMessage:
if (ghi->label().contains(QRegExp(QLatin1String("[0-9]"))))
if (ghi->label().contains(QRegularExpression(QStringLiteral("[0-9]"))))
description = i18nc(
"@info:tooltip Formats to something like 'Threads started on 2008-12-21'",
"Threads started on %1",
......@@ -2486,7 +2486,7 @@ bool View::event(QEvent *e)
break;
}
} else {
if (ghi->label().contains(QRegExp(QLatin1String("[0-9]")))) {
if (ghi->label().contains(QRegularExpression(QStringLiteral("[0-9]")))) {
if (storageModel()->containsOutboundMessages())
description = i18nc(
"@info:tooltip Formats to something like 'Messages sent on 2008-12-21'",
......
Markdown is supported
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