mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
7a6f2581e8
commit
bb5866f49e
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue