diff options
author | Igor Khanin <[email protected]> | 2025-07-06 22:57:48 +0300 |
---|---|---|
committer | Axel Spoerl <[email protected]> | 2025-07-07 22:05:22 +0000 |
commit | 1dbac99cebdb38cd82e72ba7282a18793cac2195 (patch) | |
tree | e0a3251d21f037d22da9649821892a450fa25158 | |
parent | 205f45832775cd08cf20316387ea580060616bcd (diff) |
the boolean isHorizontal was added in
ca41ace3578e6e49e5e85dc951a336e8d1832b1a. It was implemented wrongly.
Correct it, to restore the ability to resize the right dock area as
expected.
Fixes: QTBUG-137120
Pick-to: 6.10 6.9 6.8
Change-Id: I3750923d2a7c4ae2b304d69417e46a92c6ffa911
Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r-- | src/widgets/widgets/qdockarealayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qdockarealayout.cpp b/src/widgets/widgets/qdockarealayout.cpp index f5d92094f54..c1ce675d75a 100644 --- a/src/widgets/widgets/qdockarealayout.cpp +++ b/src/widgets/widgets/qdockarealayout.cpp @@ -3327,7 +3327,8 @@ int QDockAreaLayout::separatorMove(const QList<int> &separator, const QPoint &or { int delta = 0; const auto dockPosition = static_cast<QInternal::DockPosition>(separator.last()); - const bool isHorizontal = dockPosition == QInternal::LeftDock || dockPosition == QInternal::TopDock; + const bool isHorizontal = + dockPosition == QInternal::LeftDock || dockPosition == QInternal::RightDock; const bool isLeftOrTop = dockPosition == QInternal::LeftDock || dockPosition == QInternal::TopDock; const bool separatorIsWithinDock = separator.size() > 1; |