Added possibility for creating vouchers from other module.
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user