Commit e84a13b8 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from deprecated KIO signals

Port away from KCoreDireLister::redirection(const QUrl &).
parent 65bdad3f
......@@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// KF
#include <KDirLister>
#include <kio_version.h>
#include <KProtocolManager>
// Local
......@@ -117,8 +118,14 @@ ContextManager::ContextManager(SortedDirModel* dirModel, QObject* parent)
connect(d->mDirModel, &SortedDirModel::rowsInserted, this, &ContextManager::slotRowsInserted);
#if KIO_VERSION < QT_VERSION_CHECK(5, 80, 0)
connect(d->mDirModel->dirLister(), SIGNAL(redirection(QUrl)),
SLOT(slotDirListerRedirection(QUrl)));
#else
connect(d->mDirModel->dirLister(), QOverload<const QUrl &, const QUrl &>::of(&KDirLister::redirection), this, [this](const QUrl &, const QUrl &newUrl) {
slotDirListerRedirection(newUrl);
});
#endif
connect(d->mDirModel->dirLister(), QOverload<>::of(&KDirLister::completed), this, &ContextManager::slotDirListerCompleted);
......
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