Show hidden pieces with a different color in the timeline.

This commit is contained in:
leo 2015-03-16 01:47:55 +00:00
parent f8a85809e8
commit 96e0b46931
2 changed files with 9 additions and 0 deletions

View file

@ -3004,6 +3004,7 @@ void lcModel::HideSelectedPieces()
}
UpdateSelection();
gMainWindow->UpdateTimeline(false);
gMainWindow->UpdateFocusObject(NULL);
gMainWindow->UpdateAllViews();
}
@ -3019,6 +3020,7 @@ void lcModel::HideUnselectedPieces()
}
UpdateSelection();
gMainWindow->UpdateTimeline(false);
gMainWindow->UpdateAllViews();
}
@ -3033,6 +3035,7 @@ void lcModel::UnhideSelectedPieces()
}
UpdateSelection();
gMainWindow->UpdateTimeline(false);
gMainWindow->UpdateAllViews();
}
@ -3042,6 +3045,7 @@ void lcModel::UnhideAllPieces()
mPieces[PieceIdx]->SetHidden(false);
UpdateSelection();
gMainWindow->UpdateTimeline(false);
gMainWindow->UpdateAllViews();
}

View file

@ -147,6 +147,11 @@ void lcTimelineWidget::Update(bool Clear)
}
}
QColor Color = palette().text().color();
if (Piece->IsHidden())
Color.setAlpha(128);
PieceItem->setTextColor(0, Color);
PieceItem->setSelected(Piece->IsSelected());
PieceItemIndex++;
}