summaryrefslogtreecommitdiff
path: root/src/modlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modlist.h')
-rw-r--r--src/modlist.h18
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;