Files
Upsilon/escher/src/table_view_cell.cpp
Émilie Feral f809d089d6 [escher] Make table view accept only table view cell
Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
2016-10-25 17:55:28 +02:00

21 lines
346 B
C++

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