]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/trash/dolphintrash.cpp
Drop now unneeded QOverload statements
[dolphin.git] / src / trash / dolphintrash.cpp
index bec266c3bab3818643ad85433873e4b3e84cc46a..1446ab38812754fa6abe2f15e23c6d85a43b907a 100644 (file)
@@ -8,6 +8,7 @@
 #include "dolphintrash.h"
 
 #include <KIO/JobUiDelegate>
+#include <kio_version.h>
 #include <KJobWidgets>
 #include <QList>
 #include <KNotification>
@@ -21,13 +22,13 @@ Trash::Trash()
     // The trash icon must always be updated dependent on whether
     // the trash is empty or not. We use a KDirLister that automatically
     // watches for changes if the number of items has been changed.
-    m_trashDirLister->setAutoErrorHandlingEnabled(false, nullptr);
+    m_trashDirLister->setAutoErrorHandlingEnabled(false);
     m_trashDirLister->setDelayedMimeTypes(true);
     auto trashDirContentChanged = [this]() {
         bool isTrashEmpty = m_trashDirLister->items().isEmpty();
         Q_EMIT emptinessChanged(isTrashEmpty);
     };
-    connect(m_trashDirLister, QOverload<>::of(&KCoreDirLister::completed), this, trashDirContentChanged);
+    connect(m_trashDirLister, &KCoreDirLister::completed, this, trashDirContentChanged);
     connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged);
     m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/")));
 }