mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Hideable cells in values controller
This commit is contained in:
20
apps/shared/hideable_even_odd_buffer_text_cell.cpp
Normal file
20
apps/shared/hideable_even_odd_buffer_text_cell.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user