Fix regular exp warning
This commit is contained in:
parent
504a1244cd
commit
add46f9960
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue