[Ion] Move to C++

Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
This commit is contained in:
Romain Goyet
2016-08-23 16:30:15 +02:00
parent 00afebbe2d
commit 753a4a7cb5
56 changed files with 692 additions and 618 deletions

View File

@@ -30,15 +30,15 @@ void ListController::setActiveCell(int index) {
app()->focus(cell);
}
bool ListController::handleEvent(ion_event_t event) {
bool ListController::handleEvent(Ion::Events::Event event) {
switch (event) {
case DOWN_ARROW:
case Ion::Events::Event::DOWN_ARROW:
setActiveCell(m_activeCell+1);
return true;
case UP_ARROW:
case Ion::Events::Event::UP_ARROW:
setActiveCell(m_activeCell-1);
return true;
case ENTER:
case Ion::Events::Event::ENTER:
m_manualScrolling += 10;
m_tableView.setContentOffset({0, m_manualScrolling});
return true;