summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-27 12:28:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-27 12:28:24 +0200
commit0c033610fca4cf9e03fc425fe0a130da3cb6f879 (patch)
tree971e2fab1b6e4429cf6016e0583611acb29df4d0
parentKDE printing system (diff)
downloadrekonq-0c033610fca4cf9e03fc425fe0a130da3cb6f879.tar.xz
kdialog fixes
-rw-r--r--src/networkaccessmanager.cpp14
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));