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
Marco Bubke
flatpak-qt-creator
Commits
425c61f6
Commit
425c61f6
authored
Dec 04, 2009
by
Roberto Raggi
Browse files
Fixed drop shadow
Done with: mae
parent
5ec1c36c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/texteditor/texteditoroverlay.cpp
View file @
425c61f6
...
@@ -332,7 +332,9 @@ void TextEditorOverlay::paintSelection(QPainter *painter,
...
@@ -332,7 +332,9 @@ void TextEditorOverlay::paintSelection(QPainter *painter,
painter
->
save
();
painter
->
save
();
QPainterPath
shadow
=
path
;
QPainterPath
shadow
=
path
;
shadow
.
translate
(
m_dropShadowWidth
,
m_dropShadowWidth
);
shadow
.
translate
(
m_dropShadowWidth
,
m_dropShadowWidth
);
painter
->
setClipPath
(
shadow
.
intersected
(
path
));
QPainterPath
clip
;
clip
.
addRect
(
m_editor
->
viewport
()
->
rect
());
painter
->
setClipPath
(
clip
-
path
);
painter
->
fillPath
(
shadow
,
QColor
(
0
,
0
,
0
,
100
));
painter
->
fillPath
(
shadow
,
QColor
(
0
,
0
,
0
,
100
));
painter
->
restore
();
painter
->
restore
();
}
}
...
...
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