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
@@ -9,7 +9,7 @@
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include <QListWidgetItem>
|
||||
#include <QMessageBox>
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QShortcut>
|
||||
#include <QThread>
|
||||
|
||||
@@ -158,7 +158,7 @@ void BrowserWnd::slotNewTableList(QStringList tables)
|
||||
{
|
||||
if (!m_ui->leFilter->text().isEmpty()) // filter when there is a filter
|
||||
{
|
||||
QRegExp regExp(m_ui->leFilter->text(), Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||
QRegularExpression regExp(QRegularExpression::wildcardToRegularExpression(m_ui->leFilter->text()), QRegularExpression::CaseInsensitiveOption);
|
||||
tables = tables.filter(regExp);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user