Fixed MSVS build.

This commit is contained in:
2016-02-09 10:33:08 +01:00
parent 69c6068c0d
commit bc77f671ae
5 changed files with 20 additions and 4 deletions
+12
View File
@@ -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 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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)