diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2022-05-17 11:47:01 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:20:40 +0200 |
| commit | d13f6bb870cdda71257f665367be8ef9fca86255 (patch) | |
| tree | 52e214718478f1e52856572f5aa1a2ac58537f9f /src/modlistdropinfo.h | |
| parent | 86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff) | |
Apply clang-format.
Diffstat (limited to 'src/modlistdropinfo.h')
| -rw-r--r-- | src/modlistdropinfo.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/modlistdropinfo.h b/src/modlistdropinfo.h index 5d2af92f..3082e2a1 100644 --- a/src/modlistdropinfo.h +++ b/src/modlistdropinfo.h @@ -12,25 +12,24 @@ class OrganizerCore; // small class that extract information from mimeData // -class ModListDropInfo { +class ModListDropInfo +{ public: - // text value for the mime-data for the various possible // origin (not for external drops) // - static constexpr const char* ModText = "mod"; + static constexpr const char* ModText = "mod"; static constexpr const char* DownloadText = "download"; public: - - struct RelativeUrl { + struct RelativeUrl + { const QUrl url; const QString relativePath; const QString originName; }; public: - ModListDropInfo(const QMimeData* mimeData, OrganizerCore& core); // returns true if this drop is valid @@ -68,7 +67,6 @@ public: const auto& externalUrl() const { return m_url; } private: - friend class ModList; // retrieve the relative path of file and its origin given a URL from Mime data @@ -77,10 +75,9 @@ private: std::optional<RelativeUrl> relativeUrl(const QUrl&) const; private: - // rows for drag&drop between views std::vector<int> m_rows; - int m_download; // -1 if invalid + int m_download; // -1 if invalid // local URLs from the data (relative path + origin name) std::vector<RelativeUrl> m_localUrls; |
