From 4330ab58f50e05255413c65301765e4922026bae Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 2 Feb 2021 20:14:14 +1000 Subject: [PATCH] auto-expand items while dragging --- qt/aqt/sidebar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index ca1b6be3b..8921e692e 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -313,6 +313,7 @@ class SidebarTreeView(QTreeView): self.setUniformRowHeights(True) self.setHeaderHidden(True) self.setIndentation(15) + self.setAutoExpandDelay(600) # this doesn't play nicely with shift+click to OR items - we may want # to put it behind a 'multi-select' mode # self.setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection)