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());