added usb-racemode, database needs to be reconfigured and colors in timemodel needs to be adapted
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user