From 566441a7067ad0a83173b6652aa4a0c345b93b42 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 11 Jan 2021 09:36:35 +0100 Subject: Add comment to mousePressEvent(). --- src/modlistview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modlistview.cpp') diff --git a/src/modlistview.cpp b/src/modlistview.cpp index 5e3e6b58..8827733b 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -1357,6 +1357,12 @@ void ModListView::timerEvent(QTimerEvent* event) void ModListView::mousePressEvent(QMouseEvent* event) { + // allow alt+click to select all mods inside a separator + // when using collapsible separators + // + // similar code is also present in mouseReleaseEvent to + // avoid missing events + // disable edit if Alt is pressed auto triggers = editTriggers(); if (event->modifiers() & Qt::AltModifier) { -- cgit v1.3.1