Lts/Tools: Complete QRegExp to QRegularExpression migration
- Migrated QRegExp → QRegularExpression in: - DdsView/detailview.cpp (line 636) - DdsView/sequences/abstractsequencewidget.cpp (line 167) - VapixConfig/httprequesthandler.cpp (lines 68, 95, 136) - ConfigX/configurator.cpp - LogViewer/sortfiltermodel.cpp - SqlBrowser/BrowserWnd.cpp - Added Qt6::Core5Compat to TextEditorTest CMakeLists.txt for QTextCodec support - All QRegExp instances in Lts/Tools now migrated to QRegularExpression Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
d5c13033e2
commit
71636a42c4
7 files changed
+13
-11
No files matched your search
@@ -10,7 +10,7 @@
|
||||
#include "sortfiltermodel.h"
|
||||
#include "logviewtablemodel.h"
|
||||
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
|
||||
void SortFilterModel::setStartDateFilter(const QDateTime &start)
|
||||
{
|
||||
@@ -52,8 +52,8 @@ void SortFilterModel::setStringFilter(int col, const QString &filter)
|
||||
|
||||
if (m_stringFilter.contains(col))
|
||||
{
|
||||
QRegExp currentFilter(m_stringFilter[col], Qt::CaseInsensitive, QRegExp::FixedString);
|
||||
if (currentFilter.exactMatch(filter))
|
||||
QRegularExpression currentFilter(QRegularExpression::escape(m_stringFilter[col]), QRegularExpression::CaseInsensitiveOption);
|
||||
if (currentFilter.match(filter).hasMatch())
|
||||
return;
|
||||
else
|
||||
m_stringFilter.insert(col, filter);
|
||||
|
||||
Reference in new issue
Block a user