MCPcopy Create free account
hub / github.com/clementgallet/libTAS / setHoveredCell

Method setHoveredCell

src/program/ui/InputEditorModel.cpp:1365–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365void 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
1378void InputEditorModel::seekToFrame(unsigned long long frame)
1379{

Callers 1

leaveEventMethod · 0.80

Calls 1

columnMethod · 0.80

Tested by

no test coverage detected