CSkeletonHierarchyModel: Make use of in-class initializers where applicable
This commit is contained in:
parent
c96ed14062
commit
ff8033584a
|
@ -1,9 +1,8 @@
|
||||||
#include "CSkeletonHierarchyModel.h"
|
#include "CSkeletonHierarchyModel.h"
|
||||||
#include "Editor/UICommon.h"
|
#include "Editor/UICommon.h"
|
||||||
|
|
||||||
CSkeletonHierarchyModel::CSkeletonHierarchyModel(QObject *pParent /*= 0*/)
|
CSkeletonHierarchyModel::CSkeletonHierarchyModel(QObject *pParent)
|
||||||
: QAbstractItemModel(pParent)
|
: QAbstractItemModel(pParent)
|
||||||
, mpSkeleton(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
|
|
||||||
class CSkeletonHierarchyModel : public QAbstractItemModel
|
class CSkeletonHierarchyModel : public QAbstractItemModel
|
||||||
{
|
{
|
||||||
CSkeleton *mpSkeleton;
|
CSkeleton *mpSkeleton = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CSkeletonHierarchyModel(QObject *pParent = 0);
|
explicit CSkeletonHierarchyModel(QObject *pParent = nullptr);
|
||||||
QModelIndex index(int Row, int Column, const QModelIndex& rkParent) const;
|
|
||||||
QModelIndex parent(const QModelIndex& rkChild) const;
|
QModelIndex index(int Row, int Column, const QModelIndex& rkParent) const override;
|
||||||
int rowCount(const QModelIndex& rkParent) const;
|
QModelIndex parent(const QModelIndex& rkChild) const override;
|
||||||
int columnCount(const QModelIndex& rkParent) const;
|
int rowCount(const QModelIndex& rkParent) const override;
|
||||||
QVariant data(const QModelIndex& rkIndex, int Role) const;
|
int columnCount(const QModelIndex& rkParent) const override;
|
||||||
|
QVariant data(const QModelIndex& rkIndex, int Role) const override;
|
||||||
|
|
||||||
CBone* BoneForIndex(const QModelIndex& rkIndex) const;
|
CBone* BoneForIndex(const QModelIndex& rkIndex) const;
|
||||||
QModelIndex IndexForBone(CBone *pBone) const;
|
QModelIndex IndexForBone(CBone *pBone) const;
|
||||||
|
|
Loading…
Reference in New Issue