Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
#include "personprice.h"
|
||||
#include <define.h>
|
||||
|
||||
QX_REGISTER_CPP_CAMP(PersonPrice)
|
||||
|
||||
namespace qx {
|
||||
template<> void register_class(QxClass<PersonPrice>& t) {
|
||||
t.setName("PersonPrice");
|
||||
t.id(&PersonPrice::m_id, "id");
|
||||
t.data(&PersonPrice::m_description, "description");
|
||||
t.data(&PersonPrice::m_fromAge, "fromAge");
|
||||
t.data(&PersonPrice::m_toAge, "toAge");
|
||||
t.data(&PersonPrice::m_price, "price");
|
||||
t.data(&PersonPrice::m_active, "active");
|
||||
}
|
||||
}
|
||||
|
||||
PersonPrice::PersonPrice(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_id = 0;
|
||||
@@ -10,12 +24,12 @@ PersonPrice::PersonPrice(QObject *parent) : QObject(parent)
|
||||
m_active = true;
|
||||
}
|
||||
|
||||
int PersonPrice::id() const
|
||||
long PersonPrice::id() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void PersonPrice::setId(int id)
|
||||
void PersonPrice::setId(long id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user