summaryrefslogtreecommitdiff
path: root/src/browsermainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r--src/browsermainwindow.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp
index d6327300..3375aa89 100644
--- a/src/browsermainwindow.cpp
+++ b/src/browsermainwindow.cpp
@@ -42,16 +42,13 @@
#include <KToggleFullScreenAction>
#include <KActionCollection>
#include <KMessageBox>
+#include <KFileDialog>
// Qt Includes
-#include <QDesktopWidget>
-#include <QFileDialog>
#include <QPlainTextEdit>
#include <QPrintDialog>
#include <QPrintPreviewDialog>
#include <QPrinter>
-#include <QToolBar>
-#include <QInputDialog>
#include <QWebFrame>
#include <QWebHistory>
#include <QDebug>
@@ -539,8 +536,10 @@ void BrowserMainWindow::slotFileNew()
void BrowserMainWindow::slotFileOpen()
{
- QString file = QFileDialog::getOpenFileName(this, i18n("Open Web Resource"), QString(),
- i18n("Web Resources (*.html *.htm *.svg *.png *.gif *.svgz);;All files (*.*)"));
+ QString file = KFileDialog::getOpenFileName( KUrl(),
+ i18n("Web Resources (*.html *.htm *.svg *.png *.gif *.svgz);;All files (*.*)"),
+ this,
+ i18n("Open Web Resource") );
if (file.isEmpty())
return;