summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 09:36:35 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 09:36:35 +0100
commit566441a7067ad0a83173b6652aa4a0c345b93b42 (patch)
tree9bc4d45cb664f8869bbc86a69321a9ee8ed75276
parenta5059cbe3226f1ebc31b6403eaaa830549d327c9 (diff)
Add comment to mousePressEvent().
-rw-r--r--src/modlistview.cpp6
1 files changed, 6 insertions, 0 deletions
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) {