| 362 | } |
| 363 | |
| 364 | bool Widget3DModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const |
| 365 | { |
| 366 | const QModelIndex sourceIdx = sourceModel()->index(source_row, 0, source_parent); |
| 367 | QObject *sourceObj = sourceModel()->data(sourceIdx, ObjectModel::ObjectRole).value<QObject *>(); |
| 368 | return qobject_cast<QWidget *>(sourceObj); |
| 369 | } |
| 370 | |
| 371 | void Widget3DModel::onWidgetChanged(const QVector<int> &roles) |
| 372 | { |