[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] plan/workpackage: Port planwork KFileDialog -> QFileDialog
From:       Friedrich W. H. Kossebau <kossebau () kde ! org>
Date:       2015-12-31 19:05:18
Message-ID: E1aEiXG-0005pd-22 () scm ! kde ! org
[Download RAW message or body]

Git commit bbace0cd374873382a5bbcccff455f7bd80f826e by Friedrich W. H. Kossebau.
Committed on 31/12/2015 at 14:07.
Pushed by kossebau into branch 'master'.

Port planwork KFileDialog -> QFileDialog

M  +4    -3    plan/workpackage/mainwindow.cpp

http://commits.kde.org/calligra/bbace0cd374873382a5bbcccff455f7bd80f826e

diff --git a/plan/workpackage/mainwindow.cpp b/plan/workpackage/mainwindow.cpp
index 40b2e44..402f470 100644
--- a/plan/workpackage/mainwindow.cpp
+++ b/plan/workpackage/mainwindow.cpp
@@ -30,6 +30,8 @@
 #include <QSplitter>
 #include <QLabel>
 #include <QWidget>
+#include <QFileDialog>
+
 #include <kundo2qstack.h>
 
 #include <assert.h>
@@ -38,7 +40,6 @@
 #include <KoApplicationAdaptor.h>
 #include <KoDocument.h>
 
-#include <kfiledialog.h>
 #include <KLocalizedString>
 #include <kmessagebox.h>
 #include <kactioncollection.h>
@@ -148,8 +149,8 @@ void KPlatoWork_MainWindow::slotFileSave()
 
 void KPlatoWork_MainWindow::slotFileOpen()
 {
-    QString file = KFileDialog::getOpenFileName( QUrl(), "*.planwork" );
+    const QUrl file = QFileDialog::getOpenFileUrl( 0, QString(), QUrl(), "*.planwork" );
     if ( ! file.isEmpty() ) {
-        openDocument( QUrl::fromUserInput(file) );
+        openDocument( file );
     }
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic