Tidying
This commit is contained in:
@@ -6,8 +6,6 @@ namespace Bloom::Widgets
|
||||
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
||||
) {
|
||||
static constexpr int leftMargin = 10;
|
||||
static const auto margins = QMargins(0, 10, 0, 0);
|
||||
|
||||
const auto newRowCount = byteItemsByRowIndex.size();
|
||||
const auto layoutItemMaxIndex = static_cast<int>(this->addressItemsByRowIndex.size() - 1);
|
||||
|
||||
|
||||
@@ -15,17 +15,17 @@ namespace Bloom::Widgets
|
||||
static constexpr int WIDTH = 75;
|
||||
static constexpr int HEIGHT = ByteItem::HEIGHT;
|
||||
|
||||
ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
||||
explicit ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
||||
|
||||
void setAddressHex(const QString& address);
|
||||
|
||||
[[nodiscard]] QRectF boundingRect() const override {
|
||||
return QRectF(
|
||||
return {
|
||||
0,
|
||||
0,
|
||||
ByteAddressItem::WIDTH,
|
||||
ByteAddressItem::HEIGHT
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
|
||||
|
||||
Reference in New Issue
Block a user