Commit 87ce534c authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Disable drawing commit lines and circles

parent d12c9306
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment