[apps/shared] Draw separators between series in Store data

This commit is contained in:
Léa Saviot
2018-05-24 15:12:20 +02:00
parent 70fa8d658e
commit 2717e8ebef
13 changed files with 131 additions and 11 deletions

View File

@@ -38,11 +38,15 @@ View * BufferFunctionTitleCell::subviewAtIndex(int index) {
}
void BufferFunctionTitleCell::layoutSubviews() {
m_bufferTextView.setFrame(bufferTextViewFrame());
}
KDRect BufferFunctionTitleCell::bufferTextViewFrame() const {
KDRect textFrame(0, k_colorIndicatorThickness, bounds().width(), bounds().height() - k_colorIndicatorThickness);
if (m_orientation == Orientation::VerticalIndicator){
textFrame = KDRect(k_colorIndicatorThickness, 0, bounds().width() - k_colorIndicatorThickness, bounds().height()-k_separatorThickness);
}
m_bufferTextView.setFrame(textFrame);
return textFrame;
}
}