# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-08-15 09:22:16 # Node ID 1088c847e54a9891b402101be0a39758d4d13c8f # Parent fc0a4142a86a8a12d94a1eba0ccbb1606e04b4a0 remove accidentially committed test code diff --git a/main.cpp b/main.cpp --- a/main.cpp +++ b/main.cpp @@ -51,33 +51,5 @@ int main(int argc, char *argv[]) qDebug() << "Revision" << VERSION_REVISION; w.show(); - - // test framebuffer - FrameBuffer buffer(10); - QVector s(3,15.); - s.append(1.0); - s.append(2.0); - s.append(3.0); - buffer.addSamples(s); - // buffer.addSamples(s); - // buffer.resize(5); - QwtPlot plot; - QwtPlotCurve curve; - curve.setSamples(&buffer); - curve.attach(&plot); - plot.show(); - qDebug() << buffer.sample(0); - qDebug() << buffer.sample(1); - qDebug() << "size:" << buffer.size(); - buffer.addSamples(s); - // curve.setSamples(&buffer); - plot.replot(); - // qDebug() << buffer.sample(5); - // qDebug() << buffer.sample(7); - // qDebug() << buffer.sample(8); - // qDebug() << buffer.sample(9); - // qDebug() << buffer.sample(15); - // qDebug() << buffer.sample(19); - return a.exec(); }