plotview: Use range_t for viewRange

This commit is contained in:
Mike
2016-03-09 01:46:15 +00:00
parent c40508eb16
commit 3c8f2b2701
2 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ void PlotView::paintEvent(QPaintEvent *event)
int y = -verticalScrollBar()->value(); \
for (auto&& plot : plots) { \
QRect rect = QRect(0, y, width(), plot->height()); \
plot->paintFunc(painter, rect, {viewRange.first, viewRange.second});\
plot->paintFunc(painter, rect, viewRange); \
y += plot->height(); \
} \
}
@@ -178,7 +178,7 @@ void PlotView::paintEvent(QPaintEvent *event)
PLOT_LAYER(paintMid);
PLOT_LAYER(paintFront);
if (cursorsEnabled)
cursors.paintFront(painter, rect, {viewRange.first, viewRange.second});
cursors.paintFront(painter, rect, viewRange);
#undef PLOT_LAYER
}