aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/PackThemeDialog.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/theme/PackThemeDialog.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/theme/PackThemeDialog.cpp')
-rw-r--r--src/modules/theme/PackThemeDialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/theme/PackThemeDialog.cpp b/src/modules/theme/PackThemeDialog.cpp
index f7e2b14b0..91bde9429 100644
--- a/src/modules/theme/PackThemeDialog.cpp
+++ b/src/modules/theme/PackThemeDialog.cpp
@@ -37,13 +37,12 @@
#include "kvi_fileextensions.h"
#include "KviSelectors.h"
#include "KviMiscUtils.h"
+#include "KviRegExp.h"
#include "kvi_sourcesdate.h"
#include <QLineEdit>
#include <QLabel>
#include <QTextEdit>
-
-#include <QRegExp>
#include <QMessageBox>
#include <QDir>
#include <QDateTime>
@@ -165,7 +164,7 @@ void PackThemeDataWidget::parseThemes(KviPointerList<KviThemeInfo> * pThemeInfoL
szPackageVersion = pThemeInfo->version();
szPackagePath += pThemeInfo->subdirectory();
- if(szPackagePath.indexOf(QRegExp("[0-9]\\.[0-9]")) == -1)
+ if(szPackagePath.indexOf(KviRegExp("[0-9]\\.[0-9]")) == -1)
{
szPackagePath += "-";
szPackagePath += szPackageVersion;