[apps/statistics] Forbid negative sizes and round float sizes

Change-Id: I4db9777bea04f70b86da97f940ef5cbe669e41d9
This commit is contained in:
Émilie Feral
2017-03-24 10:36:31 +01:00
parent 85b27c372d
commit 128af56396
8 changed files with 23 additions and 6 deletions

View File

@@ -112,8 +112,9 @@ bool StoreController::cellAtLocationIsEditable(int columnIndex, int rowIndex) {
return false;
}
void StoreController::setDataAtLocation(float floatBody, int columnIndex, int rowIndex) {
bool StoreController::setDataAtLocation(float floatBody, int columnIndex, int rowIndex) {
m_store->set(floatBody, columnIndex, rowIndex-1);
return true;
}
float StoreController::dataAtLocation(int columnIndex, int rowIndex) {