@@ -238,10 +238,10 @@ void TreeItem::setData(QVariant value, int column)
238238 m_itemData.replace (column, value);
239239}
240240
241- void TreeItem::update ()
241+ void TreeItem::update (const QTime &ts )
242242{
243243 foreach (TreeItem * child, children ()) {
244- child->update ();
244+ child->update (ts );
245245 }
246246}
247247
@@ -255,7 +255,7 @@ void TreeItem::apply()
255255/*
256256 * Called after a value has changed to trigger highlighting of tree item.
257257 */
258- void TreeItem::setHighlighted (bool highlighted)
258+ void TreeItem::setHighlighted (bool highlighted, const QTime &ts )
259259{
260260 m_changed = false ;
261261 if (m_highlighted != highlighted) {
@@ -264,7 +264,7 @@ void TreeItem::setHighlighted(bool highlighted)
264264 // Add to highlight manager
265265 m_highlightManager->add (this );
266266 // Update expiration timeout
267- m_highlightExpires = QTime::currentTime () .addMSecs (m_highlightTimeMs);
267+ m_highlightExpires = ts .addMSecs (m_highlightTimeMs);
268268 // start expiration timer if necessary
269269 m_highlightManager->startTimer (m_highlightExpires);
270270 } else {
@@ -276,8 +276,7 @@ void TreeItem::setHighlighted(bool highlighted)
276276 // This will ensure that the root of a leaf that is changed also is highlighted.
277277 // Only updates that really changes values will trigger highlight of parents.
278278 if (m_parentItem) {
279- // FIXME: need to pass m_highlightExpires
280- m_parentItem->setHighlighted (highlighted);
279+ m_parentItem->setHighlighted (highlighted, ts);
281280 }
282281}
283282
0 commit comments