diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-27 12:28:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-27 12:28:24 +0200 |
commit | 0c033610fca4cf9e03fc425fe0a130da3cb6f879 (patch) | |
tree | 971e2fab1b6e4429cf6016e0583611acb29df4d0 | |
parent | KDE printing system (diff) | |
download | rekonq-0c033610fca4cf9e03fc425fe0a130da3cb6f879.tar.xz |
kdialog fixes
-rw-r--r-- | src/networkaccessmanager.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp index d3d46f60..311124e8 100644 --- a/src/networkaccessmanager.cpp +++ b/src/networkaccessmanager.cpp @@ -98,11 +98,13 @@ void NetworkAccessManager::authenticationRequired(QNetworkReply *reply, QAuthent MainWindow *mainWindow = Application::instance()->mainWindow(); KDialog dialog(mainWindow,Qt::Sheet); + dialog.setButtons( KDialog::Ok | KDialog::Cancel ); Ui::passwordWidget passwordWidget; - passwordWidget.setupUi(&dialog); + QWidget widget; + passwordWidget.setupUi(&widget); - dialog.setButtons( KDialog::Ok | KDialog::Cancel ); + dialog.setMainWidget(&widget); passwordWidget.iconLabel->setText(QString()); passwordWidget.iconLabel->setPixmap(mainWindow->style()->standardIcon(QStyle::SP_MessageBoxQuestion, 0, mainWindow).pixmap(32, 32)); @@ -124,11 +126,13 @@ void NetworkAccessManager::proxyAuthenticationRequired(const QNetworkProxy &prox MainWindow *mainWindow = Application::instance()->mainWindow(); KDialog dialog(mainWindow, Qt::Sheet); + dialog.setButtons( KDialog::Ok | KDialog::Cancel ); Ui::proxyWidget proxyWdg; - proxyWdg.setupUi(&dialog); - - dialog.setButtons( KDialog::Ok | KDialog::Cancel ); + QWidget widget; + proxyWdg.setupUi(&widget); + + dialog.setMainWidget(&widget); proxyWdg.iconLabel->setText(QString()); proxyWdg.iconLabel->setPixmap(mainWindow->style()->standardIcon(QStyle::SP_MessageBoxQuestion, 0, mainWindow).pixmap(32, 32)); |