[apps/sequence] Clean term sum controller

Change-Id: Ide724bbf8aafe01f5685f9126feae29a0099b810
This commit is contained in:
Émilie Feral
2017-06-08 17:35:33 +02:00
parent 4164509ec3
commit 26a45c5f52

View File

@@ -203,7 +203,6 @@ void TermSumController::LegendView::setSumSubscript(float start) {
m_sumLayout = new CondensedSumLayout(new StringLayout(sigma, 2), new StringLayout(buffer, strlen(buffer), KDText::FontSize::Small), nullptr);
m_sum.setExpression(m_sumLayout);
m_sum.setAlignment(0.0f, 0.5f);
layoutSubviews();
}
void TermSumController::LegendView::setSumSuperscript(float start, float end) {
@@ -219,7 +218,6 @@ void TermSumController::LegendView::setSumSuperscript(float start, float end) {
m_sumLayout = new CondensedSumLayout(new StringLayout(sigma, 2), new StringLayout(bufferStart, strlen(bufferStart), KDText::FontSize::Small), new StringLayout(bufferEnd, strlen(bufferEnd), KDText::FontSize::Small));
m_sum.setExpression(m_sumLayout);
m_sum.setAlignment(0.0f, 0.5f);
layoutSubviews();
}
void TermSumController::LegendView::setSumResult(const char * sequenceName, float result) {
@@ -233,7 +231,6 @@ void TermSumController::LegendView::setSumResult(const char * sequenceName, floa
m_sumLayout = new HorizontalLayout(childrenLayouts, 3);
m_sum.setExpression(m_sumLayout);
m_sum.setAlignment(0.5f, 0.5f);
layoutSubviews();
}
int TermSumController::LegendView::numberOfSubviews() const {