diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/views/draganddrophelper.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/views/draganddrophelper.h')
| -rw-r--r-- | src/views/draganddrophelper.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h index 19a30404e..656cefe1b 100644 --- a/src/views/draganddrophelper.h +++ b/src/views/draganddrophelper.h @@ -17,7 +17,10 @@ class QDropEvent; class QMimeData; class QWidget; -namespace KIO { class DropJob; } +namespace KIO +{ +class DropJob; +} class DOLPHIN_EXPORT DragAndDropHelper { @@ -35,26 +38,31 @@ public: * @return KIO::DropJob pointer or null in case the destUrl is contained * in the mimeData url list. */ - static KIO::DropJob* dropUrls(const QUrl& destUrl, - QDropEvent* event, - QWidget *window); + static KIO::DropJob *dropUrls(const QUrl &destUrl, QDropEvent *event, QWidget *window); /** * @return True if destUrl is contained in the urls parameter. */ - static bool urlListMatchesUrl(const QList<QUrl>& urls, const QUrl& destUrl); + static bool urlListMatchesUrl(const QList<QUrl> &urls, const QUrl &destUrl); /** * @return True if mimeData contains Ark's drag and drop mime types. */ static bool isArkDndMimeType(const QMimeData *mimeData); - static QString arkDndServiceMimeType() { return QStringLiteral("application/x-kde-ark-dndextract-service"); } - static QString arkDndPathMimeType() { return QStringLiteral("application/x-kde-ark-dndextract-path"); } + static QString arkDndServiceMimeType() + { + return QStringLiteral("application/x-kde-ark-dndextract-service"); + } + static QString arkDndPathMimeType() + { + return QStringLiteral("application/x-kde-ark-dndextract-path"); + } /** * clear the internal cache. */ static void clearUrlListMatchesUrlCache(); + private: /** * Stores the results of the expensive checks made in urlListMatchesUrl. |
