Files
Upsilon/apps/shared/store_cell.cpp
2019-09-09 19:10:17 +02:00

24 lines
594 B
C++

#include "store_cell.h"
namespace Shared {
void StoreCell::drawRect(KDContext * ctx, KDRect rect) const {
HideableEvenOddEditableTextCell::drawRect(ctx, rect);
// Draw the separator
if (m_separatorLeft) {
ctx->fillRect(separatorRect(bounds()), HideableEvenOddEditableTextCell::hideColor());
}
}
void StoreCell::layoutSubviews() {
KDRect boundsThis = bounds();
editableTextCell()->setFrame(rectWithoutSeparator(KDRect(boundsThis.left(), boundsThis.top(), boundsThis.width() - k_rightMargin, boundsThis.height())));
}
void StoreCell::didSetSeparator() {
reloadCell();
}
}