Browse Source
Merge pull request #102 from DenioD/dev
Fix compiler warning pertaining to deprecated method
pull/103/head
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/mainwindow.cpp
-
src/sendtab.cpp
|
|
@ -442,7 +442,7 @@ void MainWindow::setupSettingsModal() { |
|
|
|
|
|
|
|
void MainWindow::addressBook() { |
|
|
|
// Check to see if there is a target.
|
|
|
|
QRegExp re("Address[0-9]+", Qt::CaseInsensitive); |
|
|
|
QRegularExpression re("Address[0-9]+", QRegularExpression::CaseInsensitiveOption); |
|
|
|
for (auto target: ui->sendToWidgets->findChildren<QLineEdit *>(re)) { |
|
|
|
if (target->hasFocus()) { |
|
|
|
AddressBook::open(this, target); |
|
|
|
|
|
@ -132,7 +132,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<QLineEdit *>(re)) { |
|
|
|
target->setCompleter(labelCompleter); |
|
|
|
} |
|
|
|