This commit is contained in:
parent
5394816999
commit
01614a2b3c
|
|
@ -81,10 +81,6 @@ public: \
|
|||
private: \
|
||||
NUT_WRAP_NAMESPACE(TableSet)<type*> *m_##n; \
|
||||
public: \
|
||||
static type *n##Table(){ \
|
||||
static type *f = new type(); \
|
||||
return f; \
|
||||
} \
|
||||
NUT_WRAP_NAMESPACE(TableSet)<type*> *n(){ \
|
||||
return m_##n; \
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "post.h"
|
||||
#include "comment.h"
|
||||
#include "tableset.h"
|
||||
#include "post.h"
|
||||
|
||||
Post::Post(QObject *parent) : Table(parent),
|
||||
m_comments(new TableSet<Comment*>(this)), m_id(0), m_title("")
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@
|
|||
#include <QtCore/qglobal.h>
|
||||
#include "table.h"
|
||||
#include "database.h"
|
||||
#include "comment.h"
|
||||
//#include "comment.h"
|
||||
#include "databasemodel.h"
|
||||
|
||||
#ifdef NUT_NAMESPACE
|
||||
using namespace NUT_NAMESPACE;
|
||||
#endif
|
||||
|
||||
class Comment;
|
||||
class Post : public Table
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#include "user.h"
|
||||
|
||||
#include "comment.h"
|
||||
|
||||
User::User(QObject *tableSet) : Table(tableSet),
|
||||
m_comments(new TableSet<Comment*>(this))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,12 +4,13 @@
|
|||
#include <QtCore/QUuid>
|
||||
#include "table.h"
|
||||
#include "tableset.h"
|
||||
#include "comment.h"
|
||||
//#include "comment.h"
|
||||
|
||||
#ifdef NUT_NAMESPACE
|
||||
using namespace NUT_NAMESPACE;
|
||||
#endif
|
||||
|
||||
class Comment;
|
||||
class User : public Table
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
Loading…
Reference in New Issue