If macro EET is not defined EET functions will be hidden.
This commit is contained in:
@@ -421,3 +421,13 @@ QDecDouble VoucherSum::totalPrice() const
|
||||
int VoucherSum::count() const {
|
||||
return m_count;
|
||||
}
|
||||
|
||||
VoucherSum::VoucherSum(int count, int totalPrice) : m_count(count), m_totalPrice(totalPrice) {}
|
||||
|
||||
void VoucherSum::addPrice(QDecDouble price) {
|
||||
m_totalPrice += FROM_DEC(price);
|
||||
}
|
||||
|
||||
void VoucherSum::addCount(int count) {
|
||||
m_count += count;
|
||||
}
|
||||
|
||||
@@ -210,9 +210,13 @@ class VoucherSum
|
||||
QX_REGISTER_FRIEND_CLASS(VoucherSum)
|
||||
public:
|
||||
VoucherSum() = default;
|
||||
VoucherSum(int count, int totalPrice);
|
||||
|
||||
QDecDouble totalPrice() const;
|
||||
int count() const;
|
||||
|
||||
void addPrice(QDecDouble price);
|
||||
void addCount(int count);
|
||||
|
||||
private:
|
||||
int m_count{0};
|
||||
|
||||
Reference in New Issue
Block a user