You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
707 B
C++
41 lines
707 B
C++
8 years ago
|
#include "campsettings.h"
|
||
|
#include <define.h>
|
||
|
#include <QDebug>
|
||
|
|
||
|
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;
|
||
|
}
|