Removed chart paint below bottom line in chart widget.
This commit is contained in:
parent
f76f69b5cd
commit
d8566f770f
|
@ -664,7 +664,14 @@ void ChartWidget::setupChartArea() {
|
||||||
for (auto &horizontalLine : _horizontalLines) {
|
for (auto &horizontalLine : _horizontalLines) {
|
||||||
PaintCaptionsToHorizontalLines(p, horizontalLine, chartRect);
|
PaintCaptionsToHorizontalLines(p, horizontalLine, chartRect);
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
const auto bottom = r
|
||||||
|
- QMargins{ 0, rect::bottom(chartRect), 0, 0 };
|
||||||
|
p.fillRect(bottom, st::boxBg);
|
||||||
|
p.fillRect(
|
||||||
|
QRect(bottom.x(), bottom.y(), bottom.width(), st::lineWidth),
|
||||||
|
st::boxTextFg);
|
||||||
|
}
|
||||||
{
|
{
|
||||||
auto o = ScopedPainterOpacity(p, detailsAlpha);
|
auto o = ScopedPainterOpacity(p, detailsAlpha);
|
||||||
for (const auto &dot : detailsPaintContext.dots) {
|
for (const auto &dot : detailsPaintContext.dots) {
|
||||||
|
|
Loading…
Reference in New Issue