[code] The user can clear the console history.

Change-Id: Ice8143f9c424764f6729feab0d73d39d91f896fd
This commit is contained in:
Léa Saviot
2017-11-30 14:35:02 +01:00
parent 38ec9429aa
commit d732bce90f

View File

@@ -120,6 +120,11 @@ bool ConsoleController::handleEvent(Ion::Events::Event event) {
}
} else if (event == Ion::Events::Copy) {
return copyCurrentLineToClipboard();
} else if (event == Ion::Events::Clear) {
m_consoleStore.clear();
m_selectableTableView.reloadData();
m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());
return true;
}
return false;
}