| 1363 | } |
| 1364 | |
| 1365 | void InputEditorModel::setHoveredCell(const QModelIndex &i) |
| 1366 | { |
| 1367 | QVector<int> roles(2, Qt::DisplayRole); |
| 1368 | roles[1] = Qt::ForegroundRole; |
| 1369 | |
| 1370 | const QModelIndex old = hoveredIndex; |
| 1371 | hoveredIndex = i; |
| 1372 | emit dataChanged(index(0,old.column()), index(rowCount(),old.column()), roles); |
| 1373 | emit dataChanged(index(0,hoveredIndex.column()), index(rowCount(),hoveredIndex.column()), QVector<int>(1, Qt::BackgroundRole)); |
| 1374 | emit headerDataChanged(Qt::Horizontal, old.column(), old.column()); |
| 1375 | emit headerDataChanged(Qt::Horizontal, hoveredIndex.column(), hoveredIndex.column()); |
| 1376 | } |
| 1377 | |
| 1378 | void InputEditorModel::seekToFrame(unsigned long long frame) |
| 1379 | { |