#include "signaldisplay.h" #include #include SignalDisplay::SignalDisplay(QWidget *&parent):QWidget(parent) { colorTrace = Qt::black; secsPerDiv = 1.0/600.0; voltsPerDiv = 20; setPointsPerPlot(10); } void SignalDisplay::setPointsPerPlot(int value) { pointsPerPlot = value; waves = new QPoint[pointsPerPlot]; secsIdx = 0; } void SignalDisplay::drawGrid(QPainter &p, QColor colorGrid, int x, int y, int w, int h, int nx, int ny){ p.setPen(colorGrid); for (int ix= 0; ix