Tidying
This commit is contained in:
@@ -46,7 +46,6 @@ bool ByteItemContainerGraphicsView::event(QEvent* event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ByteItemContainerGraphicsView::resizeEvent(QResizeEvent* event) {
|
void ByteItemContainerGraphicsView::resizeEvent(QResizeEvent* event) {
|
||||||
Logger::warning("Resizing");
|
|
||||||
this->scene->adjustByteWidgets();
|
this->scene->adjustByteWidgets();
|
||||||
QGraphicsView::resizeEvent(event);
|
QGraphicsView::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,41 +137,6 @@ void HexViewerWidget::onTargetStateChanged(Targets::TargetState newState) {
|
|||||||
this->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<int>(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<QLabel*>(this->byteWidgetAddressLayout->itemAt(rowIndex)->widget());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// labelWidget->setText(byteWidgets.front()->relativeAddressHex);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// const auto rowCount = static_cast<int>(byteWidgetsByRowIndex.size());
|
|
||||||
// QLayoutItem* labelItem;
|
|
||||||
// while ((labelItem = this->byteWidgetAddressLayout->takeAt(rowCount)) != nullptr) {
|
|
||||||
// labelItem->widget()->deleteLater();
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
void HexViewerWidget::setStackMemoryHighlightingEnabled(bool enabled) {
|
void HexViewerWidget::setStackMemoryHighlightingEnabled(bool enabled) {
|
||||||
this->highlightStackMemoryButton->setChecked(enabled);
|
this->highlightStackMemoryButton->setChecked(enabled);
|
||||||
this->settings.highlightStackMemory = enabled;
|
this->settings.highlightStackMemory = enabled;
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onTargetStateChanged(Targets::TargetState newState);
|
void onTargetStateChanged(Targets::TargetState newState);
|
||||||
void onByteWidgetsAdjusted();
|
|
||||||
void setStackMemoryHighlightingEnabled(bool enabled);
|
void setStackMemoryHighlightingEnabled(bool enabled);
|
||||||
void setHoveredRowAndColumnHighlightingEnabled(bool enabled);
|
void setHoveredRowAndColumnHighlightingEnabled(bool enabled);
|
||||||
void setFocusedMemoryHighlightingEnabled(bool enabled);
|
void setFocusedMemoryHighlightingEnabled(bool enabled);
|
||||||
|
|||||||
Reference in New Issue
Block a user