Files
Upsilon/escher/src/highlight_cell.cpp
Léa Saviot 45aa526cd6 [code] Fixed SelectableTableView selection problem.
If adding a script fails, the selectableTableView should select the "Add
script" line.

Change-Id: I373cdfa0afcc334e4bf306b1cee4bfb817417980
2017-11-17 11:59:50 +01:00

19 lines
318 B
C++

#include <escher/highlight_cell.h>
HighlightCell::HighlightCell() :
View(),
m_highlighted(false)
{
}
void HighlightCell::setHighlighted(bool highlight) {
if (m_highlighted != highlight) {
m_highlighted = highlight;
reloadCell();
}
}
void HighlightCell::reloadCell() {
markRectAsDirty(bounds());
}