summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-22 14:29:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-22 14:29:30 +0200
commitd0c1b9bcbffdfa414e722cd716098de409884746 (patch)
treeff555962b46ef9286b7fe0e6919f9123d6d085e9
parentFullScreen shortcuts: F11 && CTRL + SHIFT + F (diff)
downloadrekonq-d0c1b9bcbffdfa414e722cd716098de409884746.tar.xz
Removed QDialog instances
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/networkaccessmanager.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3ebd3742..4f41652e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -572,7 +572,7 @@ void MainWindow::printRequested(QWebFrame *frame)
QPrinter printer;
QPointer<QPrintDialog> dialog = KdePrint::createPrintDialog(&printer, this);
- if (dialog->exec() == QDialog::Accepted)
+ if (dialog->exec() == KDialog::Ok)
{
frame->print(&printer);
}
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 6f0e2a3e..cbf263b6 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -41,7 +41,6 @@
// Qt Includes
#include <QtCore/QPointer>
-#include <QtGui/QDialog>
#include <QtGui/QStyle>
#include <QtGui/QTextDocument>
@@ -118,7 +117,7 @@ void NetworkAccessManager::authenticationRequired(QNetworkReply *reply, QAuthent
passwordWidget.introLabel->setText(introMessage);
passwordWidget.introLabel->setWordWrap(true);
- if (dialog->exec() == QDialog::Accepted)
+ if (dialog->exec() == KDialog::Ok)
{
auth->setUser(passwordWidget.userNameLineEdit->text());
auth->setPassword(passwordWidget.passwordLineEdit->text());
@@ -147,7 +146,7 @@ void NetworkAccessManager::proxyAuthenticationRequired(const QNetworkProxy &prox
proxyWdg.introLabel->setText(introMessage);
proxyWdg.introLabel->setWordWrap(true);
- if (dialog->exec() == QDialog::Accepted)
+ if (dialog->exec() == KDialog::Ok)
{
auth->setUser(proxyWdg.userNameLineEdit->text());
auth->setPassword(proxyWdg.passwordLineEdit->text());