Commit 5f0f958b authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KDirLister::setShowingDotFiles

parent 82f743a2
Pipeline #261687 passed with stage
in 3 minutes and 49 seconds
......@@ -12,6 +12,8 @@
#include <QList>
#include <kio_version.h>
namespace Filelight
{
......@@ -62,7 +64,11 @@ RemoteLister::RemoteLister(const QUrl &url, ScanManager *parent)
, m_store(m_root)
, m_manager(parent)
{
#if KIO_VERSION < QT_VERSION_CHECK(5, 100, 0)
setShowingDotFiles(true); // Stupid KDirLister API function names
#else
setShowHiddenFiles(true);
#endif
// Use SIGNAL(result(KIO::Job*)) instead and then use Job::error()
connect(this, static_cast<void (KCoreDirLister::*)()>(&KCoreDirLister::completed), this, &RemoteLister::onCompleted);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment