src/RelpipeTableModel.h
branchv_0
changeset 28 04f1ac8a931b
parent 26 97847181b724
child 29 0f9f7d6564cd
equal deleted inserted replaced
27:8c5364450a46 28:04f1ac8a931b
    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 {