stats: make number of z-levels dynamic

Other users of the qtquick code might have different needs
for z-levels.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2023-04-16 12:59:19 +02:00
parent 4c43764b36
commit 533cff96f3
5 changed files with 50 additions and 44 deletions

View file

@ -5,16 +5,21 @@
// drawn in order of addition to the scene.
#ifndef ZVALUES_H
enum class ChartZValue {
Grid = 0,
Series,
Axes,
SeriesLabels,
ChartFeatures, // quartile markers and regression lines
Selection,
InformationBox,
Legend,
Count
// Encapsulating an enum in a struct is stupid, but allows us
// to not poison the namespace and yet autoconvert to int
// (in constrast to enum class). enum is so broken!
struct ChartZValue {
enum ZValues {
Grid = 0,
Series,
Axes,
SeriesLabels,
ChartFeatures, // quartile markers and regression lines
Selection,
InformationBox,
Legend,
Count
};
};
#endif