Sidebar: Use different times for auto-expand vs. auto-collapse of sidebar items - #16870
Draft
cr7pt0gr4ph7 wants to merge 4 commits into
Draft
Sidebar: Use different times for auto-expand vs. auto-collapse of sidebar items#16870cr7pt0gr4ph7 wants to merge 4 commits into
cr7pt0gr4ph7 wants to merge 4 commits into
Conversation
…nd SidebarModel::UrlRole The URLs associated with the tree items are used during Drag & Drop operations to identify those tree items.
This was referenced Aug 10, 2026
…in logic to SidebarModel
Starting with at least Qt 5.0.0 (released in 2011) and still present in current versions of Qt (Qt 6.8.0 at the time of this commit), there is a bug in the implementation of QTreeView::dragMoveEvent and autoExpandDelay: QT BUG DESCRIPTION Instead of resetting the delay timer whenever the mouse moves to a new item, it is reset on every little mouse movement, which makes autoExpand useless e.g. on laptop touchpads. OUR WORKAROUND Only reset the delay timer whenever the mouse has moved to a new item, by bypassing QTreeView::dragMoveEvent() and directly calling QAbstractItemView::dragMoveEvent() instead unless the mouse has moved to a new item.
cr7pt0gr4ph7
force-pushed
the
rtm_sidebar_autocollapse
branch
from
August 11, 2026 09:26
d25f93c to
ecd2766
Compare
This improves usability on laptop touchpads and other devices where accurate movements while holding down the mouse button are difficult.
cr7pt0gr4ph7
force-pushed
the
rtm_sidebar_autocollapse
branch
from
August 11, 2026 09:28
ecd2766 to
055a564
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This improves usability on laptop touchpads and other devices where accurate movements while holding down the mouse button are difficult.
This builds upon #16869.