mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include "messagehandlermodel.h"
|
#include "messagehandlermodel.h"
|
||||||
#include "core/qthelper.h"
|
#include "core/qthelper.h"
|
||||||
|
#include "QRegularExpression"
|
||||||
|
|
||||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||||
extern void writeToAppLogFile(QString logText);
|
extern void writeToAppLogFile(QString logText);
|
||||||
|
@ -40,7 +41,7 @@ void MessageHandlerModel::addLog(QtMsgType type, const QString& message)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// filter extremely noisy and unhelpful messages
|
// 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;
|
return;
|
||||||
|
|
||||||
beginInsertRows(QModelIndex(), rowCount(), rowCount());
|
beginInsertRows(QModelIndex(), rowCount(), rowCount());
|
||||||
|
|
Loading…
Reference in a new issue