Fix timeline re-painting issue when changing tag range (#3242)

This commit is contained in:
David Capello 2022-04-25 14:00:26 -03:00
parent 96cb38c29d
commit b31affd2e8
3 changed files with 9 additions and 1 deletions

View File

@ -77,8 +77,10 @@ namespace app {
virtual void onSelectionChanged(DocEvent& ev) { }
virtual void onSelectionBoundariesChanged(DocEvent& ev) { }
// Tags
// When the tag range changes
virtual void onTagChange(DocEvent& ev) { }
// When the tag is renamed
virtual void onTagRename(DocEvent& ev) { }
// Slices

View File

@ -1917,6 +1917,11 @@ void Timeline::onRemoveTag(DocEvent& ev)
onAddTag(ev);
}
void Timeline::onTagChange(DocEvent& ev)
{
invalidateHit(Hit(PART_TAGS));
}
void Timeline::onTagRename(DocEvent& ev)
{
invalidateHit(Hit(PART_TAGS));

View File

@ -163,6 +163,7 @@ namespace app {
void onLayerNameChange(DocEvent& ev) override;
void onAddTag(DocEvent& ev) override;
void onRemoveTag(DocEvent& ev) override;
void onTagChange(DocEvent& ev) override;
void onTagRename(DocEvent& ev) override;
// app::Context slots.