mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Fixed the colours in the history widget, when rack and solution are not on the same line
This commit is contained in:
parent
9afebca0c2
commit
009ac85148
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ void HistoryWidget::updateModel()
|
|||
// Set the color of the text
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue