EDIT: Ok, forget it. I am just to stupid to enter "test" correctly... The code is working fine. Time to go home.
Here was the code:
void WebkitViewer::authenticationRequired(QNetworkReply* reply, QAuthenticator* authenticator) {
AuthentificationDialog dialog(getViewerWidget());
dialog.setInformation(reply->url(), authenticator->realm());
if(dialog.
exec() == QDialog::Accepted) { authenticator->setUser(dialog.getUserName());
authenticator->setPassword(dialog.getPassword());
}
}
void WebkitViewer::authenticationRequired(QNetworkReply* reply, QAuthenticator* authenticator) {
AuthentificationDialog dialog(getViewerWidget());
dialog.setInformation(reply->url(), authenticator->realm());
if(dialog.exec() == QDialog::Accepted) {
authenticator->setUser(dialog.getUserName());
authenticator->setPassword(dialog.getPassword());
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks