Commit 82afc8ed authored by tstellanova's avatar tstellanova

ensure that pending items are visible across multiple widgets

parent 5ca5bd9e
...@@ -209,6 +209,8 @@ void QGCParamWidget::handlePendingParamUpdate(int compId, const QString& paramNa ...@@ -209,6 +209,8 @@ void QGCParamWidget::handlePendingParamUpdate(int compId, const QString& paramNa
if (isPending) { if (isPending) {
paramItem->setBackground(0, QBrush(QColor(QGC::colorOrange))); paramItem->setBackground(0, QBrush(QColor(QGC::colorOrange)));
paramItem->setBackground(1, QBrush(QColor(QGC::colorOrange))); paramItem->setBackground(1, QBrush(QColor(QGC::colorOrange)));
//ensure that the adjusted item is visible
tree->expandItem(paramItem->parent());
} }
else { else {
paramItem->setBackground(0, Qt::NoBrush); paramItem->setBackground(0, Qt::NoBrush);
...@@ -368,6 +370,7 @@ QTreeWidgetItem* QGCParamWidget::updateParameterDisplay(int compId, QString para ...@@ -368,6 +370,7 @@ QTreeWidgetItem* QGCParamWidget::updateParameterDisplay(int compId, QString para
else { else {
paramItem->setData(1, Qt::DisplayRole, value); paramItem->setData(1, Qt::DisplayRole, value);
} }
} }
if (paramItem) { if (paramItem) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment