[escher] Optimize redrawing when changing features in cells (color,

highlight, even)

Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
This commit is contained in:
Émilie Feral
2017-11-21 14:45:33 +01:00
parent 5e822a8001
commit 35b979798d
6 changed files with 24 additions and 9 deletions

View File

@@ -9,8 +9,13 @@ NewFunctionCell::NewFunctionCell(I18n::Message text) :
{
}
void NewFunctionCell::reloadCell() {
EvenOddCell::reloadCell();
void NewFunctionCell::setEven(bool even) {
EvenOddCell::setEven(even);
m_messageTextView.setBackgroundColor(backgroundColor());
}
void NewFunctionCell::setHighlighted(bool highlight) {
EvenOddCell::setHighlighted(highlight);
m_messageTextView.setBackgroundColor(backgroundColor());
}