[apps/graph] Hideable cells in values controller

This commit is contained in:
Léa Saviot
2019-09-05 10:24:40 +02:00
parent aa1d1165e8
commit af3d1456e0
7 changed files with 81 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
#include "hideable_even_odd_buffer_text_cell.h"
namespace Shared {
KDColor HideableEvenOddBufferTextCell::backgroundColor() const {
if (hidden()) {
return hideColor();
}
return EvenOddBufferTextCell::backgroundColor();
}
void HideableEvenOddBufferTextCell::setHide(bool hide) {
if (hidden() != hide) {
Hideable::setHide(hide);
m_bufferTextView.setBackgroundColor(backgroundColor());
reloadCell();
}
}
}