diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2023-01-12 12:50:26 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-02-02 18:03:36 +0000 |
commit | 7df8ef0a107ebd0f7394784366ea02b0b3956669 (patch) | |
tree | b3d6906dedbd1a717907847ce2872fde216da719 /examples/network/http | |
parent | 871f7a05db4b152387c563be519cf3426a9b249e (diff) |
HTTP example: Reflow QMessageBox usage in if-statement
It gets hard to read like that.
And update mentions of 'SSL' to 'TLS' in the message while we're there.
Task-number: QTBUG-108874
Pick-to: 6.5
Change-Id: Ia7b27bfb3d99391b14ed396ca9a6400621022bf6
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'examples/network/http')
-rw-r--r-- | examples/network/http/httpwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp index f34bae0322..72f130734b 100644 --- a/examples/network/http/httpwindow.cpp +++ b/examples/network/http/httpwindow.cpp @@ -273,9 +273,10 @@ void HttpWindow::sslErrors(const QList<QSslError> &errors) errorString += error.errorString(); } - if (QMessageBox::warning(this, tr("SSL Errors"), - tr("One or more SSL errors has occurred:\n%1").arg(errorString), - QMessageBox::Ignore | QMessageBox::Abort) == QMessageBox::Ignore) { + if (QMessageBox::warning(this, tr("TLS Errors"), + tr("One or more TLS errors has occurred:\n%1").arg(errorString), + QMessageBox::Ignore | QMessageBox::Abort) + == QMessageBox::Ignore) { reply->ignoreSslErrors(); } } |