Sat, 02 Apr 2022 23:01:13 +0200
Added change beerstyle, the fermentables table, and first part of calcFermentables to the recipe editor.
#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); /** * @brief Map SRM color to RGB and return as QColor. * @param srm The srm value. * @return QColor */ QColor srm_to_color(int srm); /** * @brief Map EBC color to RGB and return as QColor. * @param ebc The ebc value. * @return QColor */ QColor ebc_to_color(int ebc); /** * @brief Map SRM color to a QString for stylesheets. * @param srm The srm value. * @return A QString with stylesheet colors. */ QString srm_to_style(int ebc); /** * @brief Map EBC color to a QString for stylesheets. * @param ebc The ebc value. * @return A QString with stylesheet colors. */ QString ebc_to_style(int srm); } #endif