Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
8cb35e5a
Commit
8cb35e5a
authored
Aug 14, 2022
by
Pablo Rauzy
Browse files
Previous little fix allows further simplification.
parent
18ebcb09
Pipeline
#217859
passed with stage
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewmanager.cpp
View file @
8cb35e5a
...
...
@@ -871,7 +871,7 @@ KateViewSpace *KateViewManager::findIntuitiveNeighborView(KateSplitter *splitter
if
(
targetSplitter
->
orientation
()
==
o
)
{
// as long as the orientation is the same we move down in the desired direction
targetChild
=
targetSplitter
->
widget
(
childIndex
);
}
else
{
// otherwise we need to find in which of the two child to go based on the cursor position
QPoint
cursorCoord
=
activeView
()
->
mapToGlobal
(
QPoint
(
0
,
0
))
+
activeView
()
->
cursorPositionCoordinates
();
QPoint
cursorCoord
=
activeView
()
->
mapToGlobal
(
activeView
()
->
cursorPositionCoordinates
()
)
;
QPoint
targetSplitterCoord
=
targetSplitter
->
widget
(
0
)
->
mapToGlobal
(
QPoint
(
0
,
0
));
if
((
o
==
Qt
::
Horizontal
&&
(
targetSplitterCoord
.
y
()
+
targetSplitter
->
sizes
()[
0
]
>
cursorCoord
.
y
()))
||
(
o
==
Qt
::
Vertical
&&
(
targetSplitterCoord
.
x
()
+
targetSplitter
->
sizes
()[
0
]
>
cursorCoord
.
x
())))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment