mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4c43764b36
commit
533cff96f3
5 changed files with 50 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue