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 <array>
|
||||
#include <vector>
|
||||
|
||||
struct CPropertyModel::SProperty
|
||||
{
|
||||
IProperty* pProperty;
|
||||
QModelIndex Index;
|
||||
int ParentID;
|
||||
std::vector<int> ChildIDs;
|
||||
};
|
||||
|
||||
CPropertyModel::CPropertyModel(QObject *pParent)
|
||||
: QAbstractItemModel(pParent)
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#include <QFont>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <vector>
|
||||
|
||||
class CGameProject;
|
||||
class CScriptObject;
|
||||
@@ -16,13 +15,7 @@ class CPropertyModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
struct SProperty
|
||||
{
|
||||
IProperty* pProperty;
|
||||
QModelIndex Index;
|
||||
int ParentID;
|
||||
std::vector<int> ChildIDs;
|
||||
};
|
||||
struct SProperty;
|
||||
QList<SProperty> mProperties;
|
||||
QMap<const IProperty*, int> mPropertyToIDMap;
|
||||
int mFirstUnusedID = -1;
|
||||
|
||||
Reference in New Issue
Block a user