Skip to content

Commit

Permalink
Fix deprecated Qt methods (#6415)
Browse files Browse the repository at this point in the history
* Update MotionWidget.cpp

* Update PoseWidget.cpp
  • Loading branch information
omichel authored Oct 17, 2023
1 parent a9888b1 commit 99a9ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void MotionWidget::setItemAppearance(QListWidgetItem *item, Pose::Status status)

QColor color("black");
if (status == Pose::INVALID)
color.setNamedColor("red");
color.fromString("red");
item->setForeground(QBrush(color));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ void PoseWidget::setItemAppearance(QListWidgetItem *item, MotorTargetState::Stat
QColor color("black");
switch (status) {
case MotorTargetState::DISABLED:
color.setNamedColor("dimgray");
color.fromString("dimgray");
break;
case MotorTargetState::INVALID:
color.setNamedColor("red");
color.fromString("red");
break;
default:
break;
Expand Down

0 comments on commit 99a9ddc

Please sign in to comment.