48 EXPECT_EQ(item.
data<std::string>(),
"(0, 0, 0)");
63 EXPECT_EQ(item->data<std::string>(),
"(0, 0, 0)");
67 EXPECT_EQ(item->data<std::string>(),
"(1, 0, 0)");
bool isEditable() const
Returns true if this item has editable flag set.
T data(int role=ItemDataRole::DATA) const
Returns data of given type T for given role.
T property(const std::string &tag) const
Returns data stored in property item.
Main class to hold hierarchy of SessionItem objects.
T * insertItem(SessionItem *parent=nullptr, const TagRow &tagrow={})
Inserts item into given parent under given tagrow.
Vector item with three x,y,z property items.
static const std::string P_X
static const std::string P_Z
static const std::string P_Y
MVVM_MODEL_EXPORT bool IsSinglePropertyTag(const SessionItem &item, const std::string &tag)
Returns true if given item has registered tag, and it belongs to single property.
materialitems.h Collection of materials to populate MaterialModel.
TEST_F(VectorItemTest, initialState)
Initial state of item when it is created outside of model context.