Skip to content
GitLab
Menu
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
89b02a39
Commit
89b02a39
authored
Feb 05, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Feb 05, 2022
Browse files
Ensure line numbers are VCenter aligned
parent
85daa39b
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/htmldelegate.cpp
View file @
89b02a39
...
@@ -89,7 +89,7 @@ void SPHtmlDelegate::paintMatchItem(QPainter *p, const QStyleOptionViewItem &opt
...
@@ -89,7 +89,7 @@ void SPHtmlDelegate::paintMatchItem(QPainter *p, const QStyleOptionViewItem &opt
// line numbers
// line numbers
const
QBrush
lineNumCol
=
selected
?
m_curLineNumColor
:
m_lineNumColor
;
const
QBrush
lineNumCol
=
selected
?
m_curLineNumColor
:
m_lineNumColor
;
p
->
setPen
(
QPen
(
lineNumCol
,
1
));
p
->
setPen
(
QPen
(
lineNumCol
,
1
));
p
->
drawText
(
iconBorderRect
.
adjusted
(
2.
,
0.
,
-
2.
,
0.
),
lineCol
);
p
->
drawText
(
iconBorderRect
.
adjusted
(
2.
,
0.
,
-
2.
,
0.
),
Qt
::
AlignVCenter
,
lineCol
);
// draw the line number area separator line
// draw the line number area separator line
p
->
setPen
(
QPen
(
m_borderColor
,
1
));
p
->
setPen
(
QPen
(
m_borderColor
,
1
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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