diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-18 20:43:27 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-18 20:43:27 +0100 |
| commit | 3c0201a79909a878e6ae572b28bc7fc9588ff1c2 (patch) | |
| tree | 0758ff567932d25cac2646678854f312eef0c30e /src | |
| parent | c3f73fe8edb3edce863967093b8b91e2002e33b8 (diff) | |
Update documentation for installMod / createEmptyMod.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modlistviewactions.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h index 429c37b6..fef88375 100644 --- a/src/modlistviewactions.h +++ b/src/modlistviewactions.h @@ -31,14 +31,20 @@ public: PluginListView* pluginView, QObject* nxmReceiver); - // install the mod from the given archive before "above" the mod with - // the given index + // install mod, create an empty mod or a separator with at priority based on the + // index and the current sorting of the view + // - if the list is not sorted by priority or the index is invalid, use the + // highest priority + // - otherwise + // - create separators above the given index (the priority is not the + // same depending on the current sorting) + // - create/install mods above or below other mods depending on the sort order, or + // at the end of the separator if index corresponds to the separator // - void installMod(const QString& archivePath = "", const QModelIndex& index = QModelIndex()) const; - - // create an empty mod/a separator before the given mod or at - // the end of the list if the index is invalid + // if the archivePath is empty for installMod, ask the user for the archive + // to install // + void installMod(const QString& archivePath = "", const QModelIndex& index = QModelIndex()) const; void createEmptyMod(const QModelIndex& index = QModelIndex()) const; void createSeparator(const QModelIndex& index = QModelIndex()) const; |
