diff options
Diffstat (limited to 'stats/histogrammarker.h')
-rw-r--r-- | stats/histogrammarker.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stats/histogrammarker.h b/stats/histogrammarker.h new file mode 100644 index 000000000..14d6410bd --- /dev/null +++ b/stats/histogrammarker.h @@ -0,0 +1,21 @@ +// A line to show median an mean in histograms +#ifndef HISTOGRAM_MARKER_H +#define HISTOGRAM_MARKER_H + +#include "chartitem.h" + +class StatsAxis; +class StatsView; + +// A line marking median or mean in histograms +class HistogramMarker : public ChartLineItem { +public: + HistogramMarker(StatsView &view, double val, bool horizontal, QColor color, StatsAxis *xAxis, StatsAxis *yAxis); + void updatePosition(); +private: + StatsAxis *xAxis, *yAxis; + double val; + bool horizontal; +}; + +#endif |