#include "campsettings.h" #include #include CampSettings::CampSettings(QObject *parent) : QObject(parent) { m_accFee = 0; m_rounding = Enums::R_MATH; m_decimalPlaces = 0; } QDecDouble CampSettings::accFee() const { return TO_DEC(m_accFee); } void CampSettings::setAccFee(QDecDouble accFee) { m_accFee = FROM_DEC(accFee); } Enums::Rounding CampSettings::rounding() const { return m_rounding; } void CampSettings::setRounding(const Enums::Rounding &rounding) { m_rounding = rounding; } int CampSettings::decimalPlaces() const { return m_decimalPlaces; } void CampSettings::setDecimalPlaces(int decimalPlaces) { m_decimalPlaces = decimalPlaces; }