Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#include <qwt_legend.h>
#include <qwt_scale_draw.h>
#include <qwt_math.h>
#include <qwt_plot_item.h>
#include <qwt_plot_curve.h>
#include <qwt_text.h>
#include <QTimer>

namespace Ui
{     class 
 class MainWindowClass; 
}

class MainWindow : public QMainWindow
{   
  Q_OBJECT  public:    
  MainWindow(QWidget *parent = 0);   
  ~MainWindow();  private:
     Ui::MainWindowClass *ui; 
    QwtPlot *EkaPlotti;  
   QwtPlotCurve *EkaKurvi;
     QwtText Kurvi;   
  QwtText Y_Akseli;
     QwtText X_Akseli; 
    QTimer *timer;//osoitin ajastimeen  
   int Arvo;
     int indeksi;   
  int EdellinenY;
     double x[10000],y[10000]; 
private slots:
     void PiirraPlotiin(double Y);   
  void update(); };

#endif // MAINWINDOW_H

...