From 5cd19c3ff9c49f1be423f484f469aa8ac6ab3f65 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 19 Dec 2021 01:29:39 +0000 Subject: [PATCH] Corrected RegisterHistoryItem member variable name --- .../RegisterHistoryWidget/RegisterHistoryItem.cpp | 6 +++--- .../RegisterHistoryWidget/RegisterHistoryItem.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.cpp index e68b0ca1..90d65c87 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.cpp @@ -24,15 +24,15 @@ RegisterHistoryItem::RegisterHistoryItem( ).toHex()).toUpper()); this->valueLabel->setObjectName("value-label"); - this->descriptionLayout->setText("Register Written"); - this->descriptionLayout->setObjectName("description-label"); + this->descriptionLabel->setText("Register Written"); + this->descriptionLabel->setObjectName("description-label"); auto* subLabelLayout = new QHBoxLayout(); subLabelLayout->setSpacing(0); subLabelLayout->setContentsMargins(0, 0, 0, 0); subLabelLayout->addWidget(this->valueLabel, 0, Qt::AlignmentFlag::AlignLeft); subLabelLayout->addStretch(1); - subLabelLayout->addWidget(this->descriptionLayout, 0, Qt::AlignmentFlag::AlignRight); + subLabelLayout->addWidget(this->descriptionLabel, 0, Qt::AlignmentFlag::AlignRight); this->layout->setSpacing(5); this->layout->addWidget(this->dateLabel, 0, Qt::AlignmentFlag::AlignTop); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.hpp index 615d6680..e8ce66bc 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/RegisterHistoryWidget/RegisterHistoryItem.hpp @@ -23,6 +23,6 @@ namespace Bloom::Widgets QVBoxLayout* layout = new QVBoxLayout(this); QLabel* dateLabel = new QLabel(this); QLabel* valueLabel = new QLabel(this); - QLabel* descriptionLayout = new QLabel(this); + QLabel* descriptionLabel = new QLabel(this); }; }