Added support for binding QDecimal values.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QDecDouble.hh>
|
||||
|
||||
#include <odb/core.hxx>
|
||||
|
||||
@@ -15,7 +16,7 @@ class AccService : public QObject
|
||||
|
||||
Q_PROPERTY(QString accServiceName READ accServiceName WRITE setAccServiceName)
|
||||
Q_PROPERTY(QString accServiceCode READ accServiceCode WRITE setAccServiceCode)
|
||||
Q_PROPERTY(int price READ price WRITE setPrice)
|
||||
Q_PROPERTY(QDecDouble price READ price WRITE setPrice)
|
||||
Q_PROPERTY(bool active READ active WRITE setActive)
|
||||
Q_PROPERTY(bool salePossible READ salePossible WRITE setSalePossible)
|
||||
Q_PROPERTY(ServiceType serviceType READ serviceType WRITE setServiceType)
|
||||
@@ -32,8 +33,8 @@ public:
|
||||
int id() const;
|
||||
void setId(int id);
|
||||
|
||||
int price() const;
|
||||
void setPrice(int price);
|
||||
QDecDouble price() const;
|
||||
void setPrice(QDecDouble price);
|
||||
|
||||
bool active() const;
|
||||
void setActive(bool active);
|
||||
|
||||
Reference in New Issue
Block a user