Blame view

Modif/epsilon-master/apps/calculation/scrollable_expression_view.cpp 777 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  #include "scrollable_expression_view.h"
  #include <assert.h>
  using namespace Poincare;
  
  namespace Calculation {
  
  ScrollableExpressionView::ScrollableExpressionView(Responder * parentResponder) :
    ScrollableView(parentResponder, &m_expressionView, this),
    m_expressionView()
  {
  }
  
  void ScrollableExpressionView::setExpressionLayout(ExpressionLayout * expressionLayout) {
    m_expressionView.setExpressionLayout(expressionLayout);
    layoutSubviews();
  }
  
  void ScrollableExpressionView::setBackgroundColor(KDColor backgroundColor) {
    m_expressionView.setBackgroundColor(backgroundColor);
    ScrollableView::setBackgroundColor(backgroundColor);
  }
  
  KDSize ScrollableExpressionView::minimalSizeForOptimalDisplay() const {
    return m_expressionView.minimalSizeForOptimalDisplay();
  }
  
  }