cleanup: replace QRegExp with QRegularExpression

Qt 6 will drop support for QRegExp.
Use QRegularExpression instead.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-10-25 16:44:17 -07:00
parent 7a6f2581e8
commit bb5866f49e

View file

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "messagehandlermodel.h"
#include "core/qthelper.h"
#include "QRegularExpression"
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
extern void writeToAppLogFile(QString logText);
@ -40,7 +41,7 @@ void MessageHandlerModel::addLog(QtMsgType type, const QString& message)
return;
}
// filter extremely noisy and unhelpful messages
if (message.contains("Updating RSSI for") || (message.contains(QRegExp(".*kirigami.*onFoo properties in Connections"))))
if (message.contains("Updating RSSI for") || (message.contains(QRegularExpression(".*kirigami.*onFoo properties in Connections"))))
return;
beginInsertRows(QModelIndex(), rowCount(), rowCount());