diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-11-07 12:15:54 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-11-15 13:57:33 +0100 |
commit | d04c7121acf66af75f557147ce8d055c62262608 (patch) | |
tree | 1e6442d182d0bc63af03c5a08d215f4bba84ba99 /src/quicktemplates2/qquicksplitview_p_p.h | |
parent | 19976fd5db1f2fb4925831c5f7a708c090e4a70e (diff) |
SplitView: refactor hover handling code
- Don't unset the hovered flag only to potentially set it again.
- Generally simplify the code.
- Move it into a new updateHoveredHandle() function so that
follow up patches can call it from other places.
- Add more logging to debug hover issues.
Change-Id: Iaf06cfe1f556a3f30bd0e883ef504b3df2dbc8e2
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicksplitview_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquicksplitview_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicksplitview_p_p.h b/src/quicktemplates2/qquicksplitview_p_p.h index 5d71d461..ccefe5ec 100644 --- a/src/quicktemplates2/qquicksplitview_p_p.h +++ b/src/quicktemplates2/qquicksplitview_p_p.h @@ -74,6 +74,7 @@ public: void resizeHandle(QQuickItem *handleItem); void resizeHandles(); void updateHandleVisibilities(); + void updateHoveredHandle(QQuickItem *hoveredItem); void setResizing(bool resizing); bool isHorizontal() const; |