[escher] change horrible naming in selectable table view

Change-Id: Ia7bc06f2f079e529aa17ab01d961fb6ff62cbf98
This commit is contained in:
Émilie Feral
2016-10-28 09:44:02 +02:00
parent 0913798faf
commit 5133f75789
12 changed files with 21 additions and 21 deletions

View File

@@ -33,7 +33,7 @@ void SelectableTableView::deselectTable() {
m_selectedCellY = -1;
}
bool SelectableTableView::setSelectedCellAtLocation(int i, int j) {
bool SelectableTableView::selectCellAtLocation(int i, int j) {
if (i < 0 || i >= dataSource()->numberOfColumns()) {
return false;
}
@@ -58,7 +58,7 @@ bool SelectableTableView::setSelectedCellAtLocation(int i, int j) {
bool SelectableTableView::handleEvent(Ion::Events::Event event) {
switch (event) {
case Ion::Events::Event::DOWN_ARROW:
if (setSelectedCellAtLocation(m_selectedCellX, m_selectedCellY+1)) {
if (selectCellAtLocation(m_selectedCellX, m_selectedCellY+1)) {
if (m_delegate) {
m_delegate->tableViewDidChangeSelection(this);
}
@@ -66,7 +66,7 @@ bool SelectableTableView::handleEvent(Ion::Events::Event event) {
}
return false;
case Ion::Events::Event::UP_ARROW:
if (setSelectedCellAtLocation(m_selectedCellX, m_selectedCellY-1)) {
if (selectCellAtLocation(m_selectedCellX, m_selectedCellY-1)) {
if (m_delegate) {
m_delegate->tableViewDidChangeSelection(this);
}
@@ -74,7 +74,7 @@ bool SelectableTableView::handleEvent(Ion::Events::Event event) {
}
return false;
case Ion::Events::Event::LEFT_ARROW:
if (setSelectedCellAtLocation(m_selectedCellX-1, m_selectedCellY)) {
if (selectCellAtLocation(m_selectedCellX-1, m_selectedCellY)) {
if (m_delegate) {
m_delegate->tableViewDidChangeSelection(this);
}
@@ -82,7 +82,7 @@ bool SelectableTableView::handleEvent(Ion::Events::Event event) {
}
return false;
case Ion::Events::Event::RIGHT_ARROW:
if (setSelectedCellAtLocation(m_selectedCellX+1, m_selectedCellY)) {
if (selectCellAtLocation(m_selectedCellX+1, m_selectedCellY)) {
if (m_delegate) {
m_delegate->tableViewDidChangeSelection(this);
}