mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 18:59:12 +00:00
CPropertyModel: Move property struct into implementation
This commit is contained in:
@@ -11,6 +11,15 @@
|
|||||||
#include <QSize>
|
#include <QSize>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
struct CPropertyModel::SProperty
|
||||||
|
{
|
||||||
|
IProperty* pProperty;
|
||||||
|
QModelIndex Index;
|
||||||
|
int ParentID;
|
||||||
|
std::vector<int> ChildIDs;
|
||||||
|
};
|
||||||
|
|
||||||
CPropertyModel::CPropertyModel(QObject *pParent)
|
CPropertyModel::CPropertyModel(QObject *pParent)
|
||||||
: QAbstractItemModel(pParent)
|
: QAbstractItemModel(pParent)
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
class CGameProject;
|
class CGameProject;
|
||||||
class CScriptObject;
|
class CScriptObject;
|
||||||
@@ -16,13 +15,7 @@ class CPropertyModel : public QAbstractItemModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
struct SProperty
|
struct SProperty;
|
||||||
{
|
|
||||||
IProperty* pProperty;
|
|
||||||
QModelIndex Index;
|
|
||||||
int ParentID;
|
|
||||||
std::vector<int> ChildIDs;
|
|
||||||
};
|
|
||||||
QList<SProperty> mProperties;
|
QList<SProperty> mProperties;
|
||||||
QMap<const IProperty*, int> mPropertyToIDMap;
|
QMap<const IProperty*, int> mPropertyToIDMap;
|
||||||
int mFirstUnusedID = -1;
|
int mFirstUnusedID = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user