[poincare] Put constant value in header.

Change-Id: I67baf95528d530176812c5f378192854968b7fb9
This commit is contained in:
Léa Saviot
2018-04-18 15:24:07 +02:00
parent afcac95315
commit 29cdcd0ef0
2 changed files with 2 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ KDSize VerticalOffsetLayout::computeSize() {
assert(m_parent->isHorizontal());
int indexInParent = m_parent->indexOfChild(this);
if (indexInParent < m_parent-> numberOfChildren() - 1 && m_parent->editableChild(indexInParent + 1)->hasUpperLeftIndex()) {
width += 5;
width += k_separationMargin;
}
}
KDCoordinate height = baseLayout()->size().height() + indiceLayout()->size().height() - k_indiceHeight;

View File

@@ -33,6 +33,7 @@ protected:
Type m_type;
private:
constexpr static KDCoordinate k_indiceHeight = 5;
constexpr static KDCoordinate k_separationMargin = 5;
};
}