aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/notifier/NotifierWindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2023-10-04 11:25:05 +0200
committerGravatar ctrlaltca2023-10-18 10:26:35 +0200
commit29e92a939647612842b2f583ce0a43dd572b1345 (patch)
treebe091f42ad1c2ff70d670bd8bba597b9bbf8aae1 /src/modules/notifier/NotifierWindow.cpp
parentQt6 is stricter when casting numericals and chars. Add an explicit cast/conve... (diff)
downloadKVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.gz
KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.bz2
KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.zip
Port from QRegExp (unavailable on qt6) to KviRegExp, based on QRegularExpression
Method str_kvs_fnc_split() had to be replaced with the original version, since the newer one relied on Qt5's QStringRef
Diffstat (limited to 'src/modules/notifier/NotifierWindow.cpp')
-rw-r--r--src/modules/notifier/NotifierWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/notifier/NotifierWindow.cpp b/src/modules/notifier/NotifierWindow.cpp
index 6e0dd3fcd..b40d5d4a5 100644
--- a/src/modules/notifier/NotifierWindow.cpp
+++ b/src/modules/notifier/NotifierWindow.cpp
@@ -36,6 +36,7 @@
#include "KviOptions.h"
#include "KviUserInput.h"
#include "KviThemedLineEdit.h"
+#include "KviRegExp.h"
#include <QApplication>
#include <QEvent>
@@ -45,7 +46,6 @@
#include <QPainter>
#include <QPaintEvent>
#include <QPen>
-#include <QRegExp>
#include <QScreen>
#include <QToolTip>
@@ -141,7 +141,7 @@ void NotifierWindow::addMessage(KviWindow * pWnd, const QString & szImageId, con
{
QPixmap * pIcon = nullptr;
QString szMessage = szText;
- szMessage.replace(QRegExp("\r([^\r])*\r([^\r])+\r"), "\\2");
+ szMessage.replace(KviRegExp("\r([^\r])*\r([^\r])+\r"), "\\2");
if(!szImageId.isEmpty())
pIcon = g_pIconManager->getImage(szImageId);