@@ -36,15 +36,12 @@ Plot::Plot(QWidget* parent) :
QObject::connect(&zoomer, &Zoomer::unzoomed, this, &Plot::unzoomed);
zoomer.setZoomBase();
grid.attach(this);
rectItem.setRect(QRectF(0,0,100,1));
// rectItem.attach(this);
showGrid(false);
darkBackground(false);
_showGridAction.setToolTip("Show Grid");
_showMinorGridAction.setToolTip("Show Minor Grid");
_unzoomAction.setToolTip("Unzoom the Plot");
@@ -47,13 +47,12 @@ public:
private:
bool isAutoScaled;
double yMin, yMax;
Zoomer zoomer;
ScaleZoomer sZoomer;
QwtPlotGrid grid;
QwtPlotShapeItem rectItem;
PlotSnapshotOverlay* snapshotOverlay;
QAction _showGridAction;
QAction _showMinorGridAction;
QAction _unzoomAction;
QAction _darkBackgroundAction;
Status change: