From 3c0201a79909a878e6ae572b28bc7fc9588ff1c2 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 18 Jan 2021 20:43:27 +0100 Subject: Update documentation for installMod / createEmptyMod. --- src/modlistviewactions.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src') 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 + // + // 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; - - // create an empty mod/a separator before the given mod or at - // the end of the list if the index is invalid - // void createEmptyMod(const QModelIndex& index = QModelIndex()) const; void createSeparator(const QModelIndex& index = QModelIndex()) const; -- cgit v1.3.1