From bb5866f49eeeabcc88e5ae27cbb82a7b47589862 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 25 Oct 2021 16:44:17 -0700 Subject: [PATCH] cleanup: replace QRegExp with QRegularExpression Qt 6 will drop support for QRegExp. Use QRegularExpression instead. Signed-off-by: Dirk Hohndel --- qt-models/messagehandlermodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-models/messagehandlermodel.cpp b/qt-models/messagehandlermodel.cpp index cc3f9f12d..e22569d84 100644 --- a/qt-models/messagehandlermodel.cpp +++ b/qt-models/messagehandlermodel.cpp @@ -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());