[apps] Inline some code in variable_box_controller

This commit is contained in:
Léa Saviot
2018-11-07 10:04:31 +01:00
committed by Émilie Feral
parent 1b2c810eb2
commit 13972caa80
2 changed files with 1 additions and 5 deletions

View File

@@ -127,10 +127,6 @@ int VariableBoxController::typeAtLocation(int i, int j) {
return 0;
}
void VariableBoxController::lockDeleteEvent(Page page) {
m_lockPageDelete = page;
}
ExpressionTableCellWithExpression * VariableBoxController::leafCellAtIndex(int index) {
assert(index >= 0 && index < k_maxNumberOfDisplayedRows);
return &m_leafCells[index];

View File

@@ -32,7 +32,7 @@ public:
Expression = 1,
Function = 2
};
void lockDeleteEvent(Page page);
void lockDeleteEvent(Page page) { m_lockPageDelete = page; }
private:
constexpr static int k_maxNumberOfDisplayedRows = 6; //240/Metric::ToolboxRowHeight
constexpr static int k_numberOfMenuRows = 2;