Files
Upsilon/escher/src/highlight_cell.cpp
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

21 lines
345 B
C++

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