Changeset View
Changeset View
Standalone View
Standalone View
examples/Plotter/BigDataset/Model.h
Show All 32 Lines | 31 | enum Function { | |||
---|---|---|---|---|---|
33 | TriangleFunction, | 33 | TriangleFunction, | ||
34 | SquareFunction, | 34 | SquareFunction, | ||
35 | NoiseFunction, | 35 | NoiseFunction, | ||
36 | OneDivSineFunction, | 36 | OneDivSineFunction, | ||
37 | SineOneDivFunction | 37 | SineOneDivFunction | ||
38 | }; | 38 | }; | ||
39 | Model(); | 39 | Model(); | ||
40 | 40 | | |||
41 | int columnCount( const QModelIndex& parent ) const Q_DECL_OVERRIDE; | 41 | int columnCount( const QModelIndex& parent ) const override; | ||
42 | int rowCount( const QModelIndex& parent ) const Q_DECL_OVERRIDE; | 42 | int rowCount( const QModelIndex& parent ) const override; | ||
43 | 43 | | |||
44 | QModelIndex index( int row, int column, const QModelIndex& parent ) const Q_DECL_OVERRIDE; | 44 | QModelIndex index( int row, int column, const QModelIndex& parent ) const override; | ||
45 | QModelIndex parent( const QModelIndex& index ) const Q_DECL_OVERRIDE; | 45 | QModelIndex parent( const QModelIndex& index ) const override; | ||
46 | 46 | | |||
47 | QVariant data( const QModelIndex& index, int role ) const Q_DECL_OVERRIDE; | 47 | QVariant data( const QModelIndex& index, int role ) const override; | ||
48 | 48 | | |||
49 | void setFunction( Function f ); | 49 | void setFunction( Function f ); | ||
50 | 50 | | |||
51 | void appendPoints( int numPoints ); | 51 | void appendPoints( int numPoints ); | ||
52 | 52 | | |||
53 | public slots: | 53 | public slots: | ||
54 | void setRunning( bool ); | 54 | void setRunning( bool ); | ||
55 | 55 | | |||
Show All 13 Lines |