git-svn-id: svn://db.shs.com.ru/libs@289 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -870,7 +870,7 @@ void Graphic::drawGrid() {
|
||||
py = start + step;
|
||||
cy = 0;
|
||||
cx = gbx - 5;
|
||||
grid_pen.setWidth(qMax<int>(qRound(thick / 1.4), 1));
|
||||
grid_pen.setWidth(qMax<int>(qMax<int>(qRound(thick / 1.4), 1), grid_pen.width()));
|
||||
QFont sf = font();
|
||||
QFont nf = sf;
|
||||
sf.setPointSizeF(qMax<qreal>(sf.pointSizeF() / 1.6, 7.));
|
||||
@@ -994,7 +994,7 @@ void Graphic::drawGrid() {
|
||||
painter->drawText(gbx, chei - font_sz.height(), wid, font_sz.height(), Qt::AlignCenter, label_x);
|
||||
}
|
||||
|
||||
painter->setPen(QPen(grid_pen.color(), thick));
|
||||
painter->setPen(QPen(grid_pen.color(), qMax<int>(thick, grid_pen.width())));
|
||||
painter->drawRect(gbx, -1, wid + 6, hei + 6);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user