Mercurial > hg > easyhg
diff src/changesetdetailitem.cpp @ 671:ce29dc775650 qt5
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Wed, 05 Dec 2018 09:43:26 +0000 |
parents | ae67ea0af696 |
children | c0b46d0514a7 751b21af6b6f |
line wrap: on
line diff
--- a/src/changesetdetailitem.cpp Fri May 27 11:02:53 2016 +0100 +++ b/src/changesetdetailitem.cpp Wed Dec 05 09:43:26 2018 +0000 @@ -65,14 +65,13 @@ void ChangesetDetailItem::paint(QPainter *paint, - const QStyleOptionGraphicsItem *option, - QWidget *w) + const QStyleOptionGraphicsItem *, + QWidget *) { paint->save(); ColourSet *colourSet = ColourSet::instance(); QColor branchColour = colourSet->getColourFor(m_changeset->branch()); - QColor userColour = colourSet->getColourFor(m_changeset->author()); QTransform t = paint->worldTransform(); float scale = std::min(t.m11(), t.m22()); @@ -105,15 +104,6 @@ pts.push_back(QPointF(0, height/3 - 5)); paint->drawPolygon(QPolygonF(pts)); -/* - paint->setBrush(branchColour); - QVector<QPointF> pts; - pts.push_back(QPointF(width/2 - 5, 0)); - pts.push_back(QPointF(width/2 + 5, 0)); - pts.push_back(QPointF(width/2, -10)); - pts.push_back(QPointF(width/2 - 5, 0)); - paint->drawPolygon(QPolygonF(pts)); -*/ m_doc->drawContents(paint, r); paint->restore();