[apps/shared] HideableEvenOddCell

This commit is contained in:
Léa Saviot
2018-05-28 11:44:10 +02:00
parent 452957caf6
commit fae5659bee
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include "hideable_even_odd_cell.h"
namespace Shared {
KDColor HideableEvenOddCell::backgroundColor() const {
if (hidden()) {
return hideColor();
}
return EvenOddCell::backgroundColor();
}
void HideableEvenOddCell::setHide(bool hide) {
if (hidden() != hide) {
Hideable::setHide(hide);
reloadCell();
}
}
}