]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/trash/dolphintrash.cpp
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / trash / dolphintrash.cpp
index 007f48a335ec4bf2aee2537902e5db772502c8f0..0bb61ff28cdc5c044417e6ef3c3479f1406ccadb 100644 (file)
@@ -9,12 +9,11 @@
 
 #include <KConfig>
 #include <KConfigGroup>
+#include <KIO/DeleteOrTrashJob>
 #include <KLocalizedString>
 #include <KNotification>
-#include <QList>
 
-#include <KIO/DeleteOrTrashJob>
-#include <kio_version.h>
+#include <QList>
 
 Trash::Trash()
     : m_trashDirLister(new KDirLister())
@@ -51,7 +50,6 @@ static void notifyEmptied()
                          i18n("Trash Emptied"),
                          i18n("The Trash was emptied."),
                          QStringLiteral("user-trash"),
-                         nullptr,
                          KNotification::DefaultEvent);
 }
 
@@ -66,7 +64,7 @@ void Trash::empty(QWidget *window)
 bool Trash::isEmpty()
 {
     KConfig trashConfig(QStringLiteral("trashrc"), KConfig::SimpleConfig);
-    return (trashConfig.group("Status").readEntry("Empty", true));
+    return (trashConfig.group(QStringLiteral("Status")).readEntry("Empty", true));
 }
 
 #include "moc_dolphintrash.cpp"