From kde-commits Thu Dec 31 19:05:18 2015 From: Friedrich W. H. Kossebau Date: Thu, 31 Dec 2015 19:05:18 +0000 To: kde-commits Subject: [calligra] plan/workpackage: Port planwork KFileDialog -> QFileDialog Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=145158872808751 Git commit bbace0cd374873382a5bbcccff455f7bd80f826e by Friedrich W. H. Koss= ebau. 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 #include #include +#include + #include = #include @@ -38,7 +40,6 @@ #include #include = -#include #include #include #include @@ -148,8 +149,8 @@ void KPlatoWork_MainWindow::slotFileSave() = void KPlatoWork_MainWindow::slotFileOpen() { - QString file =3D KFileDialog::getOpenFileName( QUrl(), "*.planwork" ); + const QUrl file =3D QFileDialog::getOpenFileUrl( 0, QString(), QUrl(),= "*.planwork" ); if ( ! file.isEmpty() ) { - openDocument( QUrl::fromUserInput(file) ); + openDocument( file ); } }