diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 6c8023d..8b3e5d9 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -158,7 +158,7 @@ void MainWindow::updateLabelsAutoComplete() { labelCompleter->setCaseSensitivity(Qt::CaseInsensitive); // 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(re)) { target->setCompleter(labelCompleter); }