Browse Source
Merge pull request #20 from neunenak/fix_warning
Fix compiler warning pertaining to deprecated method
pull/25/head^2
adityapk00
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/mainwindow.cpp
|
|
@ -16,6 +16,7 @@ |
|
|
|
#include "connection.h" |
|
|
|
#include "requestdialog.h" |
|
|
|
#include "websockets.h" |
|
|
|
#include <QRegularExpression> |
|
|
|
|
|
|
|
using json = nlohmann::json; |
|
|
|
|
|
|
@ -443,7 +444,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); |
|
|
|