Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -3,16 +3,17 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
#include <QStringList>
|
||||
|
||||
#include <odb/core.hxx>
|
||||
#include <QxOrm.h>
|
||||
|
||||
#include "season.h"
|
||||
#include "core_global.h"
|
||||
#include "../core_global.h"
|
||||
|
||||
#pragma db object
|
||||
class CORESHARED_EXPORT NumberSeries : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
QX_REGISTER_FRIEND_CLASS(NumberSeries)
|
||||
Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
|
||||
Q_PROPERTY(int lastNumber READ lastNumber WRITE setLastNumber)
|
||||
Q_PROPERTY(QString pluginName READ pluginName)
|
||||
@@ -20,8 +21,8 @@ class CORESHARED_EXPORT NumberSeries : public QObject
|
||||
public:
|
||||
explicit NumberSeries(QObject *parent = 0);
|
||||
|
||||
int id() const;
|
||||
void setId(int id);
|
||||
long id() const;
|
||||
void setId(long id);
|
||||
|
||||
QString prefix() const;
|
||||
void setPrefix(const QString &prefix);
|
||||
@@ -39,11 +40,10 @@ public:
|
||||
|
||||
QString pluginName() const;
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
Q_INVOKABLE QStringList eagerLoad();
|
||||
|
||||
#pragma db id auto
|
||||
int m_id;
|
||||
private:
|
||||
long m_id;
|
||||
QString m_prefix;
|
||||
int m_lastNumber;
|
||||
QString m_pluginId;
|
||||
@@ -52,4 +52,6 @@ private:
|
||||
|
||||
typedef QSharedPointer<NumberSeries> NumberSeriesPtr;
|
||||
|
||||
QX_REGISTER_HPP_CORE(NumberSeries, QObject, 0)
|
||||
|
||||
#endif // NUMBERSERIES_H
|
||||
|
||||
Reference in New Issue
Block a user