@@ -15,25 +15,25 @@
You should have received a copy of the GNU General Public License
along with serialplot. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QRectF>
#include "plot.h"
Plot::Plot(QWidget* parent) :
QwtPlot(parent),
zoomer(this->canvas(), false),
sZoomer(this, &zoomer)
{
isAutoScaled = false;
isAutoScaled = true;
QObject::connect(&zoomer, &Zoomer::unzoomed, this, &Plot::unzoomed);
zoomer.setZoomBase();
grid.attach(this);
rectItem.setRect(QRectF(0,0,100,1));
// rectItem.attach(this);
darkBackground(false);
}
Status change: