mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
19 lines
318 B
C++
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());
|
|
}
|