mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Show hidden pieces with a different color in the timeline.
This commit is contained in:
parent
f8a85809e8
commit
96e0b46931
2 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue