Fixed bug with annotation items not inheriting disabled state from parent scene
This commit is contained in:
@@ -100,11 +100,13 @@ void ByteItemGraphicsScene::refreshRegions() {
|
|||||||
|
|
||||||
for (const auto& focusedRegion : this->focusedMemoryRegions) {
|
for (const auto& focusedRegion : this->focusedMemoryRegions) {
|
||||||
auto* annotationItem = new AnnotationItem(focusedRegion, AnnotationItemPosition::BOTTOM);
|
auto* annotationItem = new AnnotationItem(focusedRegion, AnnotationItemPosition::BOTTOM);
|
||||||
|
annotationItem->setEnabled(this->enabled);
|
||||||
this->addItem(annotationItem);
|
this->addItem(annotationItem);
|
||||||
this->annotationItems.emplace_back(annotationItem);
|
this->annotationItems.emplace_back(annotationItem);
|
||||||
|
|
||||||
if (focusedRegion.dataType != MemoryRegionDataType::UNKNOWN) {
|
if (focusedRegion.dataType != MemoryRegionDataType::UNKNOWN) {
|
||||||
auto* valueAnnotationItem = new ValueAnnotationItem(focusedRegion);
|
auto* valueAnnotationItem = new ValueAnnotationItem(focusedRegion);
|
||||||
|
valueAnnotationItem->setEnabled(this->enabled);
|
||||||
this->addItem(valueAnnotationItem);
|
this->addItem(valueAnnotationItem);
|
||||||
this->annotationItems.emplace_back(valueAnnotationItem);
|
this->annotationItems.emplace_back(valueAnnotationItem);
|
||||||
this->valueAnnotationItems.emplace_back(valueAnnotationItem);
|
this->valueAnnotationItems.emplace_back(valueAnnotationItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user