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
50565a60
Commit
50565a60
authored
May 21, 2021
by
Waqar Ahmed
Browse files
Make sure to not draw over the icon if any
Signed-off-by:
Waqar Ahmed
<
waqar.17a@gmail.com
>
parent
9f7508af
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
50565a60
...
@@ -234,6 +234,11 @@ public:
...
@@ -234,6 +234,11 @@ public:
}
}
}
}
/** There might be an icon? Make sure to not draw over it **/
auto
textRectX
=
options
.
widget
->
style
()
->
subElementRect
(
QStyle
::
SE_ItemViewItemText
,
&
options
,
options
.
widget
).
x
();
auto
width
=
textRectX
-
options
.
rect
.
x
();
painter
->
translate
(
width
,
0
);
kfts
::
paintItemViewText
(
painter
,
text
,
options
,
formats
);
kfts
::
paintItemViewText
(
painter
,
text
,
options
,
formats
);
painter
->
restore
();
painter
->
restore
();
...
...
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