| 183 | } |
| 184 | |
| 185 | QVector<int> JsonOptionsWidget::getIndexRows(const QModelIndex& index) const { |
| 186 | QVector<int> rows; |
| 187 | QModelIndex current = index; |
| 188 | while (current.isValid()) { |
| 189 | rows.prepend(current.row()); |
| 190 | current = current.parent(); |
| 191 | } |
| 192 | return rows; |
| 193 | } |