Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
#include "favorititem.h"
|
||||
#include <define.h>
|
||||
|
||||
FavoritItem::FavoritItem()
|
||||
{
|
||||
m_id = 0;
|
||||
m_vatType = Enums::NONE;
|
||||
m_unitPrice = 0;
|
||||
}
|
||||
QX_REGISTER_CPP_SHOP(FavoritItem)
|
||||
|
||||
int FavoritItem::id()
|
||||
QX_REGISTER_ALL_QT_PROPERTIES(FavoritItem, "id")
|
||||
|
||||
long FavoritItem::id()
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void FavoritItem::setId(int id)
|
||||
void FavoritItem::setId(long id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
@@ -78,12 +75,12 @@ void FavoritItem::setFavButtonName(const QString &favButtonName)
|
||||
m_favButtonName = favButtonName;
|
||||
}
|
||||
|
||||
int FavoritItem::refId() const
|
||||
long FavoritItem::refId() const
|
||||
{
|
||||
return m_refId;
|
||||
}
|
||||
|
||||
void FavoritItem::setRefId(int refId)
|
||||
void FavoritItem::setRefId(long refId)
|
||||
{
|
||||
m_refId = refId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user