Added possibility for creating vouchers from other module.

This commit is contained in:
2017-06-07 15:54:13 +02:00
parent 35696fbfea
commit d163a92293
7 changed files with 86 additions and 36 deletions
+9 -1
View File
@@ -12,8 +12,16 @@
#include "voucheritem.h"
#include <QtCore/qglobal.h>
#if defined(SHOP_LIBRARY)
# define SHOPSHARED_EXPORT Q_DECL_EXPORT
#else
# define SHOPSHARED_EXPORT Q_DECL_IMPORT
#endif
#pragma db object
class Voucher : public QObject
class SHOPSHARED_EXPORT Voucher : public QObject
{
Q_OBJECT
+9 -1
View File
@@ -10,10 +10,18 @@
#include <enums.h>
#include <QtCore/qglobal.h>
#if defined(SHOP_LIBRARY)
# define SHOPSHARED_EXPORT Q_DECL_EXPORT
#else
# define SHOPSHARED_EXPORT Q_DECL_IMPORT
#endif
class Voucher;
#pragma db object
class VoucherItem : public QObject
class SHOPSHARED_EXPORT VoucherItem : public QObject
{
Q_OBJECT