Clear any part of the graph that isn't displayed
| 694 | |
| 695 | // Clear any part of the graph that isn't displayed |
| 696 | void graphModel::clearInvisible() |
| 697 | { |
| 698 | const int graph_length = length(); |
| 699 | const int full_graph_length = m_samples.size(); |
| 700 | for( int i = graph_length; i < full_graph_length; i++ ) |
| 701 | m_samples[i] = 0; |
| 702 | emit samplesChanged( graph_length, full_graph_length - 1 ); |
| 703 | } |
| 704 | |
| 705 | void graphModel::drawSampleAt( int x, float val ) |
| 706 | { |
no test coverage detected