mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
27 lines
748 B
C++
27 lines
748 B
C++
#include "store_cell.h"
|
|
|
|
namespace Shared {
|
|
|
|
void StoreCell::setSeparatorRight(bool separator) {
|
|
if (separatorRight() != separator) {
|
|
StoreSeparatorCell::setSeparatorRight(separator);
|
|
reloadCell();
|
|
}
|
|
}
|
|
|
|
void StoreCell::drawRect(KDContext * ctx, KDRect rect) const {
|
|
HideableEvenOddEditableTextCell::drawRect(ctx, rect);
|
|
// Draw the separator
|
|
if (separatorRight()) {
|
|
ctx->fillRect(KDRect(bounds().width() - k_separatorThickness, 0, k_separatorThickness, bounds().height()), HideableEvenOddEditableTextCell::hideColor());
|
|
}
|
|
}
|
|
|
|
void StoreCell::layoutSubviews() {
|
|
KDRect boundsThis = bounds();
|
|
editableTextCell()->setFrame(KDRect(boundsThis.topLeft(), boundsThis.width() - k_separatorThickness, boundsThis.height()));
|
|
}
|
|
|
|
}
|
|
|