Implemented camp wizard and service methods for camp calculation.
This commit is contained in:
+18
-1
@@ -1,7 +1,7 @@
|
||||
#include "sale.h"
|
||||
#include <define.h>
|
||||
|
||||
Sale::Sale(QObject *parent) : QObject(parent)
|
||||
Sale::Sale(QObject *parent) : ComboItem(parent)
|
||||
{
|
||||
m_id = 0;
|
||||
m_sale = 0;
|
||||
@@ -47,3 +47,20 @@ void Sale::setDescription(const QString &description)
|
||||
{
|
||||
m_description = description;
|
||||
}
|
||||
|
||||
bool Sale::eq(ComboItem *other)
|
||||
{
|
||||
Sale *sale = qobject_cast<Sale*>(other);
|
||||
|
||||
if (sale == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return this->m_id == sale->m_id && this->m_sale == sale->m_sale && this->m_fixed == sale->m_fixed;
|
||||
}
|
||||
|
||||
QString Sale::toString()
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user