added usb-racemode, database needs to be reconfigured and colors in timemodel needs to be adapted

This commit is contained in:
2017-09-09 19:26:48 +02:00
parent 8c635096ec
commit 631b1bc6c5
10 changed files with 213 additions and 101 deletions

View File

@@ -58,7 +58,9 @@ QColor TimeModel::getColor(const QVector<QVector<int>> data, const int col, cons
if(data.at(row).size() > col){ // check for enough cols
QVector<int> compare;
for(int i = 0; i <= row; i++){
compare.append(data.at(i).at(col));
if(data.at(i).size() > col){
compare.append(data.at(i).at(col));
}
}
if(data.at(row).at(col) == getMin(compare)){
return QColor(Qt::green);