Mercurial > hg > easyhg
diff src/changesetview.cpp @ 678:c0b46d0514a7 scale
Incomplete scaling updates. Should do this differently
author | Chris Cannam |
---|---|
date | Thu, 06 Dec 2018 14:55:45 +0000 |
parents | ae67ea0af696 |
children |
line wrap: on
line diff
--- a/src/changesetview.cpp Thu Dec 06 13:54:34 2018 +0000 +++ b/src/changesetview.cpp Thu Dec 06 14:55:45 2018 +0000 @@ -19,6 +19,7 @@ #include "changesetscene.h" #include "colourset.h" #include "debug.h" +#include "common.h" #include <QScrollBar> @@ -76,11 +77,13 @@ ChangesetScene::DateRange range = i.value(); - QRectF r = QRectF(x, range.minrow * 90 - 25, - w, range.nrows * 90).normalized(); + int rowSpace = scalePixelSize(90); + + QRectF r = QRectF(x, range.minrow * rowSpace - scalePixelSize(25), + w, range.nrows * rowSpace).normalized(); paint->fillRect(r, range.even ? evenBrush : oddBrush); - paint->drawText(px, range.minrow * 90 - 10, range.label); + paint->drawText(px, range.minrow * rowSpace - scalePixelSize(10), range.label); } paint->restore();