Skip to content

Commit

Permalink
Merge pull request #453 from intel/v2.5.8_thermal_monitor
Browse files Browse the repository at this point in the history
Thermal Monitor: Add trip type back
  • Loading branch information
spandruvada authored Aug 6, 2024
2 parents e8196e0 + b42ff41 commit 13c310e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/thermal_monitor/tripsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ void tripsDialog::on_treeWidget_clicked(const QModelIndex &index)
// Alternate the background color, black to display on the graph, white to ignore
if (trip != -1 && col == 1){ // if the user clicks on a temperature
ui->label->setText("Zone: " + index.parent().data().toString());

const QAbstractItemModel *model = index.model();
const QModelIndex &child = model->index(trip, col + 1, index.parent());

ui->label_2->setText("Type: " + child.data().toString() + " (°C)");
ui->lineEdit->setText(index.data().toString());

// ACTIVE_TRIP modification not supported at this time
Expand Down

0 comments on commit 13c310e

Please sign in to comment.