Commit 34b496eb authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from deprecated KIO signals

Use KCoreDirLister::clearDir(const QUrl &) instead of clear(const QUrl &).
parent 11fdac76
......@@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
// KF
#include <KDirLister>
#include <KDirModel>
#include <kio_version.h>
// Qt
......@@ -89,7 +90,12 @@ RecursiveDirModel::RecursiveDirModel(QObject* parent)
connect(d->mDirLister, &KDirLister::itemsDeleted, this, &RecursiveDirModel::slotItemsDeleted);
connect(d->mDirLister, QOverload<>::of(&KDirLister::completed), this, &RecursiveDirModel::completed);
connect(d->mDirLister, QOverload<>::of(&KDirLister::clear), this, &RecursiveDirModel::slotCleared);
#if KIO_VERSION < QT_VERSION_CHECK(5, 79, 0)
connect(d->mDirLister, QOverload<const QUrl &>::of(&KDirLister::clear), this, &RecursiveDirModel::slotDirCleared);
#else
connect(d->mDirLister, &KDirLister::clearDir, this, &RecursiveDirModel::slotDirCleared);
#endif
}
RecursiveDirModel::~RecursiveDirModel()
......
Markdown is supported
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