diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemContainerGraphicsView.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemContainerGraphicsView.cpp index 4a6d9239..c2735c71 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemContainerGraphicsView.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemContainerGraphicsView.cpp @@ -46,7 +46,6 @@ bool ByteItemContainerGraphicsView::event(QEvent* event) { } void ByteItemContainerGraphicsView::resizeEvent(QResizeEvent* event) { - Logger::warning("Resizing"); this->scene->adjustByteWidgets(); QGraphicsView::resizeEvent(event); } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.cpp index db361b57..4df6b0b7 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.cpp @@ -137,41 +137,6 @@ void HexViewerWidget::onTargetStateChanged(Targets::TargetState newState) { this->targetState = newState; } -void HexViewerWidget::onByteWidgetsAdjusted() { -// const auto& byteWidgetsByRowIndex = this->byteWidgetContainer->byteWidgetsByRowIndex; -// -// int layoutItemMaxIndex = this->byteWidgetAddressLayout->count() - 1; -// for (const auto& mappingPair : byteWidgetsByRowIndex) { -// const auto rowIndex = static_cast(mappingPair.first); -// const auto& byteWidgets = mappingPair.second; -// -// if (byteWidgets.empty()) { -// continue; -// } -// -// QLabel* labelWidget; -// if (rowIndex > layoutItemMaxIndex) { -// labelWidget = new QLabel(this->byteWidgetAddressContainer); -// labelWidget->setFixedSize(75, 20); -// labelWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); -// -// this->byteWidgetAddressLayout->addWidget(labelWidget); -// layoutItemMaxIndex++; -// -// } else { -// labelWidget = qobject_cast(this->byteWidgetAddressLayout->itemAt(rowIndex)->widget()); -// } -// -// labelWidget->setText(byteWidgets.front()->relativeAddressHex); -// } -// -// const auto rowCount = static_cast(byteWidgetsByRowIndex.size()); -// QLayoutItem* labelItem; -// while ((labelItem = this->byteWidgetAddressLayout->takeAt(rowCount)) != nullptr) { -// labelItem->widget()->deleteLater(); -// } -} - void HexViewerWidget::setStackMemoryHighlightingEnabled(bool enabled) { this->highlightStackMemoryButton->setChecked(enabled); this->settings.highlightStackMemory = enabled; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.hpp index d211c96b..139b6ba9 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/HexViewerWidget.hpp @@ -65,7 +65,6 @@ namespace Bloom::Widgets private slots: void onTargetStateChanged(Targets::TargetState newState); - void onByteWidgetsAdjusted(); void setStackMemoryHighlightingEnabled(bool enabled); void setHoveredRowAndColumnHighlightingEnabled(bool enabled); void setFocusedMemoryHighlightingEnabled(bool enabled);