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