mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-10 18:27:16 +01:00
plotview: Use range_t for viewRange
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user