22 const int expected_column_count = 2;
 
   23 const QStringList expected_labels = QStringList() << 
"Name" 
   51     EXPECT_EQ(items.size(), expected_column_count); 
 
   55     auto labelItem = 
dynamic_cast<ViewLabelItem*
>(items.at(0).get());
 
   56     auto dataItem = 
dynamic_cast<ViewDataItem*
>(items.at(1).get());
 
   57     ASSERT_TRUE(labelItem != 
nullptr);
 
   58     EXPECT_EQ(labelItem->item(), &item);
 
   59     ASSERT_TRUE(dataItem != 
nullptr);
 
   60     EXPECT_EQ(dataItem->item(), &item);
 
   72     EXPECT_EQ(items.size(), expected_column_count);
 
   76     auto labelItem = 
dynamic_cast<ViewLabelItem*
>(items.at(0).get());
 
   77     auto dataItem = 
dynamic_cast<ViewDataItem*
>(items.at(1).get());
 
   78     ASSERT_TRUE(labelItem != 
nullptr);
 
   79     EXPECT_EQ(labelItem->item(), &item);
 
   80     ASSERT_TRUE(dataItem != 
nullptr);
 
   81     EXPECT_EQ(dataItem->item(), &item);
 
~LabelDataRowStrategyTest()
 
Constructs row of QStandardItem's for given SessionItem.
 
std::vector< std::unique_ptr< ViewItem > > constructRow(SessionItem *) override
 
QStringList horizontalHeaderLabels() const override
Example: For LayerItem two items will be generated: ViewLabelItem and ViewEmptyItem,...
 
The main object representing an editable/displayable/serializable entity.
 
bool setData(const T &value, int role=ItemDataRole::DATA, bool direct=false)
Sets data for a given role.
 
Represents data role of SessionItem in any cell of Qt's trees and tables.
 
Represents display name of SessionItem in any cell of Qt's trees and tables.
 
TEST_F(LabelDataRowStrategyTest, initialState)
 
materialitems.h Collection of materials to populate MaterialModel.