git-svn-id: svn://db.shs.com.ru/libs@98 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -881,6 +881,13 @@ void Graphic::drawGrid() {
|
||||
painter->drawText(cx - rect.width() - dx, cy, str.first);
|
||||
}
|
||||
}
|
||||
cy = real2canvasY(0.);
|
||||
if (cy >= 0 && cy <= (hei + 5)) {
|
||||
QPen _p(grid_pen);
|
||||
_p.setStyle(Qt::SolidLine);
|
||||
painter->setPen(_p);
|
||||
painter->drawLine(gbx, cy, cwid, cy);
|
||||
}
|
||||
if (hasLblY) {
|
||||
painter->setPen(text_color);
|
||||
painter->save();
|
||||
@@ -923,6 +930,13 @@ void Graphic::drawGrid() {
|
||||
}
|
||||
}
|
||||
}
|
||||
cx = real2canvasX(0.);
|
||||
if (cx <= cwid && cx >= gbx) {
|
||||
QPen _p(grid_pen);
|
||||
_p.setStyle(Qt::SolidLine);
|
||||
painter->setPen(_p);
|
||||
painter->drawLine(cx, hei + 5, cx, 0);
|
||||
}
|
||||
} else {
|
||||
int cur_scl[7] = {0,0,0,0,0,0,0};
|
||||
step = splitRangeDate(range, wid / gridx / font_sz.width() * 1.4, &df, cur_scl);
|
||||
|
||||
Reference in New Issue
Block a user