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
87ce534c
Commit
87ce534c
authored
Feb 27, 2021
by
Waqar Ahmed
Browse files
Disable drawing commit lines and circles
parent
d12c9306
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/filehistorywidget.cpp
View file @
87ce534c
...
...
@@ -140,34 +140,34 @@ public:
const
int
ascent
=
(
opt
.
fontMetrics
.
ascent
()
/
2
);
// draw line
prect
.
setX
(
prect
.
x
()
+
ascent
+
2
);
auto
sp
=
painter
->
pen
();
auto
p
=
painter
->
pen
();
p
.
setWidth
(
2
);
painter
->
setPen
(
p
);
//
prect.setX(prect.x() + ascent + 2);
//
auto sp = painter->pen();
//
auto p = painter->pen();
//
p.setWidth(2);
//
painter->setPen(p);
auto
p1
=
prect
.
bottomLeft
();
int
w
=
opt
.
fontMetrics
.
ascent
();
int
h
=
opt
.
rect
.
height
();
int
r
=
w
/
3
;
p1
.
ry
()
-=
(
h
/
2
)
-
r
;
//
auto p1 = prect.bottomLeft();
//
int w = opt.fontMetrics.ascent();
//
int h = opt.rect.height();
//
int r = w / 3;
//
p1.ry() -= (h / 2) - r;
painter
->
setRenderHint
(
QPainter
::
Antialiasing
,
true
);
//
painter->setRenderHint(QPainter::Antialiasing, true);
QPoint
pp
=
p1
;
pp
.
ry
()
-=
3
+
1
;
painter
->
drawLine
(
prect
.
topLeft
(),
pp
);
painter
->
drawEllipse
(
p1
,
r
,
r
);
auto
p2
=
p1
;
p2
.
ry
()
+=
r
+
1
;
painter
->
drawLine
(
p2
,
prect
.
bottomLeft
());
//
QPoint pp = p1;
//
pp.ry() -= 3 + 1;
//
painter->drawLine(prect.topLeft(), pp);
//
painter->drawEllipse(p1, r, r);
//
auto p2 = p1;
//
p2.ry() += r + 1;
//
painter->drawLine(p2, prect.bottomLeft());
painter
->
setRenderHint
(
QPainter
::
Antialiasing
,
false
);
//
painter->setRenderHint(QPainter::Antialiasing, false);
painter
->
setPen
(
sp
);
//
painter->setPen(sp);
// padding
prect
.
setX
(
prect
.
x
()
+
ascent
+
2
);
prect
.
setX
(
prect
.
x
()
+
5
);
prect
.
setY
(
prect
.
y
()
+
lineHeight
);
// draw author on left
...
...
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