Files
Upsilon/apps/shared/hideable_even_odd_editable_text_cell.cpp
2018-05-29 15:34:49 +02:00

21 lines
457 B
C++

#include "hideable_even_odd_editable_text_cell.h"
namespace Shared {
KDColor HideableEvenOddEditableTextCell::backgroundColor() const {
if (hidden()) {
return hideColor();
}
return EvenOddEditableTextCell::backgroundColor();
}
void HideableEvenOddEditableTextCell::setHide(bool hide) {
if (hidden() != hide) {
Hideable::setHide(hide);
editableTextCell()->textField()->setBackgroundColor(backgroundColor());
reloadCell();
}
}
}