diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp index 1a39b548..82b2ed72 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp @@ -5,6 +5,7 @@ namespace Bloom::Widgets void ByteAddressContainer::adjustAddressLabels( const std::map>& byteItemsByRowIndex ) { + static constexpr int leftMargin = 10; static const auto margins = QMargins(0, 10, 0, 0); const auto newRowCount = byteItemsByRowIndex.size(); @@ -30,7 +31,7 @@ namespace Bloom::Widgets const auto& firstByteItem = byteItems.front(); addressLabel->setAddressHex(firstByteItem->relativeAddressHex); addressLabel->setPos( - 0, + leftMargin, firstByteItem->pos().y() ); } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.hpp index 4dc08ccc..ed92d362 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.hpp @@ -15,7 +15,7 @@ namespace Bloom::Widgets class ByteAddressContainer: public QGraphicsItem { public: - static constexpr int WIDTH = 85; + static constexpr int WIDTH = 88; ByteAddressContainer() = default; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.cpp index eca2bbe3..98ec2495 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.cpp @@ -26,6 +26,6 @@ namespace Bloom::Widgets painter->setFont(font); painter->setPen(fontColor); - painter->drawText(widgetRect, Qt::AlignCenter, this->addressHex); + painter->drawText(widgetRect, Qt::AlignLeft, this->addressHex); } } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.hpp index 02c3f5e8..d5a6b523 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressItem.hpp @@ -12,7 +12,7 @@ namespace Bloom::Widgets class ByteAddressItem: public QGraphicsItem { public: - static constexpr int WIDTH = 84; + static constexpr int WIDTH = 75; static constexpr int HEIGHT = ByteItem::HEIGHT; ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};