mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Isolate Curve Labels but not Vertical Markers
.. as they represent intervals and events and are therefore related to the x-axis (time/distance) rather than any y-axis we may be showing / hiding.
This commit is contained in:
@@ -140,6 +140,9 @@ class CurveColors : public QObject
|
||||
// Labels
|
||||
foreach(QwtPlotItem *item, plot->itemList(QwtPlotItem::Rtti_PlotMarker)) {
|
||||
|
||||
// ignore event / interval markers
|
||||
if (static_cast<QwtPlotMarker*>(item)->lineStyle() == QwtPlotMarker::VLine) continue;
|
||||
|
||||
QwtScaleWidget *x = plot->axisWidget(static_cast<QwtPlotMarker*>(item)->yAxis());
|
||||
labels.insert(static_cast<QwtPlotMarker*>(item), x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user