Fix regular exp warning

This commit is contained in:
Aditya Kulkarni 2019-11-14 09:21:00 -08:00
parent 504a1244cd
commit add46f9960
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ void MainWindow::updateLabelsAutoComplete() {
labelCompleter->setCaseSensitivity(Qt::CaseInsensitive); labelCompleter->setCaseSensitivity(Qt::CaseInsensitive);
// Then, find all the address fields and update the completer. // Then, find all the address fields and update the completer.
QRegExp re("Address[0-9]+", Qt::CaseInsensitive); QRegularExpression re("Address[0-9]+", QRegularExpression::CaseInsensitiveOption);
for (auto target: ui->sendToWidgets->findChildren<QLineEdit *>(re)) { for (auto target: ui->sendToWidgets->findChildren<QLineEdit *>(re)) {
target->setCompleter(labelCompleter); target->setCompleter(labelCompleter);
} }