diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-27 23:23:56 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:15 +0100 |
| commit | cc5f0c8555fbbcc4b6d0dc29a42b8c7869df1859 (patch) | |
| tree | f274552d9310bce72d4153bae417cdf38f841bb9 /src/modlist.h | |
| parent | c46432cc2ef4a108557c1405a0f9c01616bc176e (diff) | |
Drag and drop from download view to install + Expand and scroll to mod on install.
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/modlist.h b/src/modlist.h index fad53755..2ca2fff1 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -310,6 +310,10 @@ signals: void postDataChanged();
+ // emitted when an item is dropped from the download list, the row is from the
+ // download list
+ void downloadArchiveDropped(int row, int priority);
+
protected:
// event filter, handles event from the header and the tree view itself
@@ -336,10 +340,6 @@ private: bool renameMod(int index, const QString &newName);
- bool dropURLs(const QMimeData *mimeData, int row, const QModelIndex &parent);
-
- bool dropMod(const QMimeData *mimeData, int row, const QModelIndex &parent);
-
MOBase::IModList::ModStates state(unsigned int modIndex) const;
bool moveSelection(QAbstractItemView *itemView, int direction);
@@ -369,6 +369,16 @@ private: private:
+ bool dropURLs(const QMimeData* mimeData, int row, const QModelIndex& parent);
+ bool dropMod(const QMimeData* mimeData, int row, const QModelIndex& parent);
+ bool dropArchive(const QMimeData* mimeData, int row, const QModelIndex& parent);
+
+ // return the priority of the mod for a drop event
+ //
+ int dropPriority(int row, const QModelIndex& parent) const;
+
+private:
+
friend class ModListByPriorityProxy;
OrganizerCore *m_Organizer;
|
