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
77097dee
Commit
77097dee
authored
Sep 03, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Sep 03, 2022
Browse files
Rename dataForLine -> highlightingForLine
parent
2286c850
Pipeline
#226773
passed with stage
in 5 minutes and 31 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/diffeditor.cpp
View file @
77097dee
...
...
@@ -141,7 +141,7 @@ void DiffEditor::paintEvent(QPaintEvent *e)
QRectF
r
=
blockBoundingRect
(
block
).
translated
(
offset
);
auto
layout
=
block
.
layout
();
auto
hl
=
data
ForLine
(
block
.
blockNumber
());
auto
hl
=
highlighting
ForLine
(
block
.
blockNumber
());
if
(
hl
&&
layout
)
{
const
auto
changes
=
hl
->
changes
;
for
(
auto
c
:
changes
)
{
...
...
@@ -206,7 +206,7 @@ void DiffEditor::paintEvent(QPaintEvent *e)
}
}
const
LineHighlight
*
DiffEditor
::
data
ForLine
(
int
line
)
const
LineHighlight
*
DiffEditor
::
highlighting
ForLine
(
int
line
)
{
auto
it
=
std
::
find_if
(
m_data
.
cbegin
(),
m_data
.
cend
(),
[
line
](
LineHighlight
hl
)
{
return
hl
.
line
==
line
;
...
...
apps/lib/diffeditor.h
View file @
77097dee
...
...
@@ -49,7 +49,7 @@ protected:
void
contextMenuEvent
(
QContextMenuEvent
*
e
)
override
;
private:
const
LineHighlight
*
data
ForLine
(
int
line
);
const
LineHighlight
*
highlighting
ForLine
(
int
line
);
void
updateLineNumberArea
(
const
QRect
&
rect
,
int
dy
);
void
updateLineNumAreaGeometry
();
void
updateLineNumberAreaWidth
(
int
);
...
...
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