mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Fix typo
This commit is contained in:
@@ -10,21 +10,21 @@ StoreSelectableTableView::StoreSelectableTableView(DoublePairStore * store, Resp
|
||||
|
||||
bool StoreSelectableTableView::handleEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Down) {
|
||||
return selecNonHiddenCellAtLocation(selectedColumn(), selectedRow()+1);
|
||||
return selectNonHiddenCellAtLocation(selectedColumn(), selectedRow()+1);
|
||||
}
|
||||
if (event == Ion::Events::Up) {
|
||||
return selecNonHiddenCellAtLocation(selectedColumn(), selectedRow()-1);
|
||||
return selectNonHiddenCellAtLocation(selectedColumn(), selectedRow()-1);
|
||||
}
|
||||
if (event == Ion::Events::Left) {
|
||||
return selecNonHiddenCellAtLocation(selectedColumn()-1, selectedRow());
|
||||
return selectNonHiddenCellAtLocation(selectedColumn()-1, selectedRow());
|
||||
}
|
||||
if (event == Ion::Events::Right) {
|
||||
return selecNonHiddenCellAtLocation(selectedColumn()+1, selectedRow());
|
||||
return selectNonHiddenCellAtLocation(selectedColumn()+1, selectedRow());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool StoreSelectableTableView::selecNonHiddenCellAtLocation(int i, int j) {
|
||||
bool StoreSelectableTableView::selectNonHiddenCellAtLocation(int i, int j) {
|
||||
if (i < 0 || i >= dataSource()->numberOfColumns()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ public:
|
||||
StoreSelectableTableView(DoublePairStore * store, Responder * parentResponder, TableViewDataSource * dataSource, SelectableTableViewDataSource * selectionDataSource = nullptr, SelectableTableViewDelegate * delegate = nullptr);
|
||||
bool handleEvent(Ion::Events::Event event) override;
|
||||
private:
|
||||
bool selecNonHiddenCellAtLocation(int i, int j);
|
||||
bool selectNonHiddenCellAtLocation(int i, int j);
|
||||
DoublePairStore * m_store;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user