diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,6 @@ find_package(KF5WindowSystem ${KF5_MIN_VERSION} CONFIG REQUIRED) find_package(KF5XmlGui ${KF5_MIN_VERSION} CONFIG REQUIRED) find_package(KF5Notifications ${KF5_MIN_VERSION} CONFIG REQUIRED) -find_package(KF5KDELibs4Support ${KF5_MIN_VERSION} CONFIG REQUIRED) # Find KdepimLibs Package diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -99,7 +99,7 @@ KF5::GlobalAccel KF5::Notifications KF5::WindowSystem - KF5::KDELibs4Support + KF5::KIOFileWidgets KF5::AkonadiSearchDebug KF5::AkonadiNotes KF5::Crash diff --git a/src/notes/knote.cpp b/src/notes/knote.cpp --- a/src/notes/knote.cpp +++ b/src/notes/knote.cpp @@ -45,7 +45,7 @@ #include #include -#include +#include #include #include #include @@ -511,15 +511,17 @@ convert->setText(i18n("Save note as plain text")); } QUrl url; - QPointer dlg = new KFileDialog(url, QString(), this, convert); - dlg->setOperationMode(KFileDialog::Saving); + QPointer dlg = new KFileCustomDialog(this); + dlg->setCustomWidget(convert); + dlg->setUrl(url); + dlg->setOperationMode(KFileWidget::Saving); dlg->setWindowTitle(i18n("Save As")); if (!dlg->exec()) { delete dlg; return; } - const QString fileName = dlg->selectedFile(); + const QString fileName = dlg->fileWidget()->selectedFile(); const bool htmlFormatAndSaveAsHtml = (convert && !convert->isChecked()); delete dlg; if (fileName.isEmpty()) {