src/Utils.h

Thu, 31 Mar 2022 23:10:57 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 31 Mar 2022 23:10:57 +0200
changeset 97
8283bbf95806
parent 95
ef6048186cb3
child 98
1425bf3e18ed
permissions
-rw-r--r--

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

mercurial