This commit is contained in:
Nav
2021-12-24 23:30:44 +00:00
parent 170e30d034
commit 78f6bbb5d6
2 changed files with 1 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ void ByteItem::setValue(unsigned char value) {
? std::optional(QString(QChar(this->value))) : std::nullopt;
this->valueInitialised = true;
this->update();
}
void ByteItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) {

View File

@@ -59,7 +59,6 @@ ByteItemGraphicsScene::ByteItemGraphicsScene(
void ByteItemGraphicsScene::updateValues(const Targets::TargetMemoryBuffer& buffer) {
for (auto& [address, byteWidget] : this->byteItemsByAddress) {
byteWidget->setValue(buffer.at(byteWidget->byteIndex));
byteWidget->update();
}
this->updateAnnotationValues(buffer);