| 105 | } |
| 106 | |
| 107 | void |
| 108 | pcl::cloud_composer::PropertiesModel::copyProperties(const PropertiesModel* to_copy) |
| 109 | { |
| 110 | for (int i = 0; i < to_copy->rowCount(); ++i) { |
| 111 | QList<QStandardItem*> new_row; |
| 112 | QStandardItem* parent = to_copy->item(i, 0); |
| 113 | qDebug() << "Copying " << parent->text() << " cols =" << to_copy->columnCount(); |
| 114 | new_row.append(parent->clone()); |
| 115 | for (int j = 1; j < to_copy->columnCount(); ++j) { |
| 116 | if (to_copy->item(i, j)) { |
| 117 | new_row.append(to_copy->item(i, j)->clone()); |
| 118 | } |
| 119 | } |
| 120 | appendRow(new_row); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | void |
| 125 | pcl::cloud_composer::PropertiesModel::propertyChanged(QStandardItem*) |