Fixed MSVS build.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#ifndef CORE_GLOBAL_H
|
||||
#define CORE_GLOBAL_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(CORE_LIBRARY)
|
||||
# define CORESHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define CORESHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif // CORE_GLOBAL_H
|
||||
@@ -2,6 +2,7 @@
|
||||
#define PERMISSION_H
|
||||
|
||||
#include "core-data.h"
|
||||
#include "core_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
@@ -12,7 +13,7 @@
|
||||
#include <odb/qt/list.hxx>
|
||||
|
||||
#pragma db object
|
||||
class Permission : public QObject
|
||||
class CORESHARED_EXPORT Permission : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString pluginId READ pluginId WRITE setPluginId)
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
#define ROLE_H
|
||||
|
||||
#include "core-data.h"
|
||||
#include "core_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
@@ -12,7 +13,7 @@
|
||||
#include <odb/qt/list.hxx>
|
||||
|
||||
#pragma db object
|
||||
class Role : public QObject
|
||||
class CORESHARED_EXPORT Role : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString name READ name WRITE setName)
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
#define USER_H
|
||||
|
||||
#include "core-data.h"
|
||||
#include "core_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
@@ -12,7 +13,7 @@
|
||||
#include <odb/qt/list.hxx>
|
||||
|
||||
#pragma db object
|
||||
class User : public QObject
|
||||
class CORESHARED_EXPORT User : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString login READ login WRITE setLogin)
|
||||
|
||||
Reference in New Issue
Block a user