Fixed the colours in the history widget, when rack and solution are not on the same line

This commit is contained in:
Olivier Teulière 2008-01-27 20:17:10 +00:00
parent 9afebca0c2
commit 009ac85148

View file

@ -153,7 +153,10 @@ void HistoryWidget::updateModel()
// Set the color of the text // Set the color of the text
for (int col = 0; col < 6; ++col) for (int col = 0; col < 6; ++col)
{ {
m_model->setData(m_model->index(rowNum, col), int row = rowNum;
if (!align && col < 2)
row = prevRowNum;
m_model->setData(m_model->index(row, col),
QBrush(color), Qt::ForegroundRole); QBrush(color), Qt::ForegroundRole);
} }
} }