Mercurial > hg > easyhg
comparison src/changesetview.cpp @ 679:ad3e5693cb76 scale-alternative
Alternative, and much simpler, approach to scaling
author | Chris Cannam |
---|---|
date | Thu, 06 Dec 2018 15:55:20 +0000 |
parents | ae67ea0af696 |
children | 759b81c38bb1 |
comparison
equal
deleted
inserted
replaced
677:0329bbd4b57c | 679:ad3e5693cb76 |
---|---|
57 | 57 |
58 DEBUG << "clip rect is " << rect << endl; | 58 DEBUG << "clip rect is " << rect << endl; |
59 | 59 |
60 paint->save(); | 60 paint->save(); |
61 QFont f(paint->font()); | 61 QFont f(paint->font()); |
62 f.setPixelSize(11); | |
62 f.setBold(true); | 63 f.setBold(true); |
63 paint->setFont(f); | 64 paint->setFont(f); |
64 | 65 |
65 float x = mapToScene(0, 0).x(); | 66 float x = mapToScene(0, 0).x(); |
66 float w = mapToScene(width(), 0).x() - x; | 67 float w = mapToScene(width(), 0).x() - x; |