plot: Cache tile pixmaps

This commit is contained in:
Mike Walters
2016-03-26 03:46:36 +00:00
parent 8ad24ac48f
commit 270f44ccbe
3 changed files with 20 additions and 5 deletions

View File

@@ -21,6 +21,7 @@
#include <QApplication>
#include <QDebug>
#include <QPainter>
#include <QPixmapCache>
#include <QScrollBar>
#include <gnuradio/top_block.h>
#include <gnuradio/analog/quadrature_demod_cf.h>
@@ -238,6 +239,9 @@ void PlotView::tunerMoved()
plotFilter->set_center_freq(centre);
plotFilter->set_taps(lp_taps);
// TODO: for invalidating traceplot cache, this shouldn't really go here
QPixmapCache::clear();
viewport()->update();
}