* @brief Handles HTTP authentication requests by showing a credentials dialog. */
| 488 | * @brief Handles HTTP authentication requests by showing a credentials dialog. |
| 489 | */ |
| 490 | void Downloader::authenticate(QNetworkReply* reply, QAuthenticator* authenticator) |
| 491 | { |
| 492 | Q_UNUSED(reply); |
| 493 | AuthenticateDialog dlg(this); |
| 494 | dlg.setUserName(authenticator->user()); |
| 495 | dlg.setPassword(authenticator->password()); |
| 496 | if (dlg.exec()) { |
| 497 | authenticator->setUser(dlg.userName()); |
| 498 | authenticator->setPassword(dlg.password()); |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | /** |
| 503 | * @brief Rounds the given @a input to two decimal places. |
nothing calls this directly
no test coverage detected