    if (role == Qt::DisplayRole) {
      switch (index.column()) {
        case 0: return msgName(id);
        case 1: return id.source;
        case 2: return QString::number(id.address, 16);;
        case 3: return can_data.freq;
        case 4: return can_data.count;
        case 5: return toHex(can_data.dat);
      }
    } else if (role == ColorsRole) {
      QVector<QColor> colors = can_data.colors;
 
</s> remove   uint32_t freq = 0;
 </s> add   double freq = 0;
      case 2: return QString::number(id.address, 16);
      case 3: return getFreq(can_data);
    if (role == Qt::DisplayRole) {
      switch (index.column()) {
        case 0: return msgName(id);
        case 1: return id.source;
      case 2: return QString::number(id.address, 16);
      case 3: return getFreq(can_data);
      case 2: return QString::number(id.address, 16);
      case 3: return getFreq(can_data);
        case 4: return can_data.count;
        case 5: return toHex(can_data.dat);
      }
    } else if (role == ColorsRole) {
      QVector<QColor> colors = can_data.colors;
keep keep keep keep replace replace keep keep keep keep keep
 cabana: some improvements to messages view (#27935)

* improve messageswidget

* remove double semicolon 
tools/cabana/messageswidget.cc