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
3cc33561
Commit
3cc33561
authored
May 29, 2009
by
Jens Bache-Wiig
Browse files
Fixes: Centered arrow offset on mac
parent
67466d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
3cc33561
...
...
@@ -2488,9 +2488,10 @@ void BaseTextEditor::drawFoldingMarker(QPainter *painter, const QPalette &pal,
s
=
ms
->
systemStyle
();
// QGtkStyle needs a small correction to draw the marker in the right place
if
(
!
qstrcmp
(
s
->
metaObject
()
->
className
(),
"QGtkStyle"
)
==
0
||
!
qstrcmp
(
s
->
metaObject
()
->
className
(),
"QMacStyle"
)
==
0
)
opt
.
rect
.
translate
(
-
2
,
0
);
if
(
qstrcmp
(
s
->
metaObject
()
->
className
(),
"QGtkStyle"
)
==
0
)
opt
.
rect
.
translate
(
-
2
,
0
);
else
if
(
qstrcmp
(
s
->
metaObject
()
->
className
(),
"QMacStyle"
)
==
0
)
opt
.
rect
.
translate
(
-
1
,
0
);
s
->
drawPrimitive
(
QStyle
::
PE_IndicatorBranch
,
&
opt
,
painter
,
this
);
...
...
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