mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 01:59:59 +01:00
[apps/shared] Simplify StoreTitleCell constructor
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user