mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
plot: Convert PlotView to derive from QAbstractScrollArea
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
PlotView::PlotView()
|
||||
{
|
||||
|
||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||
}
|
||||
|
||||
void PlotView::refreshSources()
|
||||
@@ -117,7 +117,7 @@ void PlotView::paintEvent(QPaintEvent *event)
|
||||
if (lastSample - firstSample <= 0) return;
|
||||
|
||||
QRect rect = QRect(0, 0, width(), height());
|
||||
QPainter painter(this);
|
||||
QPainter painter(viewport());
|
||||
painter.fillRect(rect, Qt::black);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user