Thu, 31 Mar 2022 23:10:57 +0200
Stripped down the RangedSlider. It is more compact and still does everything. Base colors (red and green) are fixed inside, also automatisc setting of outer limits. The tooltip shows the current ranges. Still some finetuning to be done.
#ifndef _UTILS_H #define _UTILS_H #include <QString> #include <QColor> /** * @namespace Utils * * @brief Global math functions. */ namespace Utils { double lintner_to_kolbach(double lintner); double kolbach_to_lintner(double kolbach); double ebc_to_srm(double ebc); double srm_to_ebc(double srm); QString hours_to_string(int hours); QColor srm_to_color(int srm); QColor ebc_to_color(int ebc); } #endif