mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
This commit is based on https://github.com/GoldenCheetah/GoldenCheetah/pull/3956 with the following additions / changes: * Upgraded to the latest version of the multiaxes-branch, thus eliminating crashes of GoldenCheetah on startup * Disabled the emitting of Layout Requests on geometry changes of QwtScaleWidget - without this, CPU utilization was up to 100% on one core * Added the class SplineLookup, reusing small portions of code from Qwt 6.1 * Re-added the splines in WPrime and RideFile (resampling), using the new interface of QwtSpline * Appveyor: qwt in cache-section now depends on qwt/qwtconfig.prin.in for refresh on version change
1) Incremental plots IncrementalPlot shows an example how to implement a plot that displays growing data. The example produces random data when you push the start button. With 'Timer' you can adjust the intervall between the the generation of the points, with 'Points' you can set the number of points to be generated. Unfortunately in Qt4 incremental painting is not possible with QPaintEngines that doesn't support the QPaintEngine::PaintOutsidePaintEvent feature. ( These are all common paint engines beside the OpenGL engine, but this one is not supported by Qwt yet. ) That is the reason why you can see much faster repaints with Qt3. 2) Stacked Zooming with scrollbars ScrollZoomer adds scrollbars for zooming. There are a couple of reasons why the implementation is a hack and therefore the class is not part of the Qwt lib, but it should be working with all types of QwtPlots. Copy the code of scrollbar.[h|cpp] and scrollzoomer.[h|cpp] to the application code. Uwe