equal
deleted
inserted
replaced
89 |
89 |
90 setData(index(row, column), valueVariant); |
90 setData(index(row, column), valueVariant); |
91 if (column == 0) emit layoutChanged(); // FIXME: emit other signal ~ begin..., end..., rowsInserted(??? index(0,0), row, row); |
91 if (column == 0) emit layoutChanged(); // FIXME: emit other signal ~ begin..., end..., rowsInserted(??? index(0,0), row, row); |
92 attributeCounter++; |
92 attributeCounter++; |
93 } |
93 } |
|
94 |
|
95 TypeId attributeType(int section) { |
|
96 return attributes[section].getTypeId(); |
|
97 } |
94 |
98 |
95 Qt::ItemFlags flags(const QModelIndex &index) const { |
99 Qt::ItemFlags flags(const QModelIndex &index) const { |
96 if (isFilled(index)) { |
100 if (isFilled(index)) { |
97 return QAbstractItemModel::flags(index) | Qt::ItemFlag::ItemIsEditable; |
101 return QAbstractItemModel::flags(index) | Qt::ItemFlag::ItemIsEditable; |
98 } else { |
102 } else { |