OSDN Git Service

bluedevil: prepare for Katie changes
authorIvailo Monev <xakepa10@gmail.com>
Sun, 21 Nov 2021 11:20:34 +0000 (13:20 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 21 Nov 2021 11:20:34 +0000 (13:20 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
bluedevil/src/sendfile/pages/selectdeviceandfilespage.cpp
bluedevil/src/sendfile/pages/selectfilespage.cpp

index cad603e..afa3056 100644 (file)
@@ -24,8 +24,8 @@
 #include "discoverwidget.h"
 #include "../sendfilewizard.h"
 
-#include <QLabel>
-#include <QDesktopServices>
+#include <QtCore/QDir>
+#include <QtGui/QLabel>
 #include <QtGui/QVBoxLayout>
 
 #include <kurl.h>
@@ -74,7 +74,7 @@ void SelectDeviceAndFilesPage::openFileDialog()
     //Don't worry MLaurent, I'm not going to check the pointer before delete it :)
     delete m_dialog;
 
-    m_dialog = new KFileDialog(KUrl(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)), "*", this);
+    m_dialog = new KFileDialog(KUrl(QDir::homePath()), "*", this);
     m_dialog->setMode(KFile::Files);
 
     connect(m_dialog, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
index 0b3d2ca..0453c4a 100644 (file)
 #include <kdiroperator.h>
 #include <kfileitem.h>
 
-#include <QDesktopServices>
+#include <QtCore/QDir>
 #include <QtGui/QVBoxLayout>
 #include <QtGui/QLabel>
 
 SelectFilesPage::SelectFilesPage(QWidget* parent): QWizardPage(parent)
 {
-    m_files = new KFileWidget(KUrl(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)), this);
+    m_files = new KFileWidget(KUrl(QDir::homePath()), this);
     m_files->setMode(KFile::Files);
     m_files->setContentsMargins(0, 0, 0, 0);
     setContentsMargins(0, 0, 0, 0);