Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
+15
-2
@@ -1,5 +1,18 @@
|
||||
#include "season.h"
|
||||
|
||||
QX_REGISTER_CPP_CORE(Season)
|
||||
|
||||
namespace qx {
|
||||
template <> void register_class(QxClass<Season> & t)
|
||||
{
|
||||
t.setName("Season");
|
||||
t.id(& Season::m_id, "id");
|
||||
t.data(& Season::m_name, "name");
|
||||
t.data(& Season::m_validFrom, "validFrom");
|
||||
t.data(& Season::m_validTo, "validTo");
|
||||
t.data(& Season::m_active, "active");
|
||||
}}
|
||||
|
||||
Season::Season(QObject *parent)
|
||||
:QObject(parent)
|
||||
{
|
||||
@@ -47,12 +60,12 @@ void Season::setActive(bool active)
|
||||
m_active = active;
|
||||
}
|
||||
|
||||
int Season::id() const
|
||||
long Season::id() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void Season::setId(int id)
|
||||
void Season::setId(long id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user