┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/trash/dolphintrash.cpp
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-02-04 00:14:53 +0700
committerSerg Podtynnyi <[email protected]>2023-02-05 12:45:38 +0700
commit38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch)
tree886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/trash/dolphintrash.cpp
parentffff8af851e3a386c44438337779d0ce7ca98a61 (diff)
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/trash/dolphintrash.cpp')
-rw-r--r--src/trash/dolphintrash.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp
index 906da2b9d..e1530bfae 100644
--- a/src/trash/dolphintrash.cpp
+++ b/src/trash/dolphintrash.cpp
@@ -7,11 +7,11 @@
#include "dolphintrash.h"
-#include <QList>
-#include <KNotification>
#include <KConfig>
#include <KConfigGroup>
#include <KLocalizedString>
+#include <KNotification>
+#include <QList>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 100, 0)
@@ -72,7 +72,7 @@ void Trash::empty(QWidget *window)
uiDelegate.setWindow(window);
bool confirmed = uiDelegate.askDeleteConfirmation(QList<QUrl>(), KIO::JobUiDelegate::EmptyTrash, KIO::JobUiDelegate::DefaultConfirmation);
if (confirmed) {
- KIO::Job* job = KIO::emptyTrash();
+ KIO::Job *job = KIO::emptyTrash();
KJobWidgets::setWindow(job, window);
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
QObject::connect(job, &KIO::Job::result, notifyEmptied);
@@ -85,4 +85,3 @@ bool Trash::isEmpty()
KConfig trashConfig(QStringLiteral("trashrc"), KConfig::SimpleConfig);
return (trashConfig.group("Status").readEntry("Empty", true));
}
-