[apps/shared] Simplify StoreTitleCell constructor

This commit is contained in:
Léa Saviot
2018-05-30 14:56:27 +02:00
parent 5c3ffecb9b
commit 5c8f9c60ef
3 changed files with 4 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ namespace Shared {
class StoreTitleCell : public BufferFunctionTitleCell {
public:
StoreTitleCell(Orientation orientation, KDText::FontSize size = KDText::FontSize::Large) :
BufferFunctionTitleCell(orientation, size),
StoreTitleCell() :
BufferFunctionTitleCell(Orientation::HorizontalIndicator, KDText::FontSize::Small),
m_separatorLeft(false)
{}
void setSeparatorLeft(bool separator);

View File

@@ -201,7 +201,7 @@ Responder * CalculationController::tabController() const {
View * CalculationController::loadView() {
for (int i = 0; i < k_numberOfSeriesTitleCells; i++) {
m_seriesTitleCells[i] = new StoreTitleCell(FunctionTitleCell::Orientation::HorizontalIndicator, KDText::FontSize::Small);
m_seriesTitleCells[i] = new StoreTitleCell();
m_seriesTitleCells[i]->setSeparatorLeft(true);
}
for (int i = 0; i < k_numberOfCalculationTitleCells; i++) {

View File

@@ -55,7 +55,7 @@ bool StoreController::setDataAtLocation(double floatBody, int columnIndex, int r
View * StoreController::loadView() {
for (int i = 0; i < k_numberOfTitleCells; i++) {
m_titleCells[i] = new Shared::StoreTitleCell(FunctionTitleCell::Orientation::HorizontalIndicator, KDText::FontSize::Small);
m_titleCells[i] = new Shared::StoreTitleCell();
}
return Shared::StoreController::loadView();
}