[escher] Change the function expression cell to inherit from

even odd expression cell
This commit is contained in:
Émilie Feral
2018-05-22 16:30:38 +02:00
parent c0d3b97c6b
commit e160282e06
14 changed files with 71 additions and 104 deletions

View File

@@ -42,7 +42,7 @@ View * FunctionTitleCell::subviewAtIndex(int index) {
void FunctionTitleCell::layoutSubviews() {
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);
textFrame = KDRect(k_colorIndicatorThickness, 0, bounds().width() - k_colorIndicatorThickness-k_separatorThickness, bounds().height()-k_separatorThickness);
}
m_bufferTextView.setFrame(textFrame);
}