Tidying annotation items in the hex viewer
This commit is contained in:
@@ -67,11 +67,10 @@ namespace Bloom::Widgets
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr auto verticalLineLength = 5;
|
|
||||||
const auto verticalLineYStart = this->position == AnnotationItemPosition::BOTTOM ? 0
|
const auto verticalLineYStart = this->position == AnnotationItemPosition::BOTTOM ? 0
|
||||||
: AnnotationItem::TOP_HEIGHT;
|
: AnnotationItem::TOP_HEIGHT;
|
||||||
const auto verticalLineYEnd = this->position == AnnotationItemPosition::BOTTOM ?
|
const auto verticalLineYEnd = this->position == AnnotationItemPosition::BOTTOM ?
|
||||||
verticalLineLength : AnnotationItem::TOP_HEIGHT - verticalLineLength;
|
AnnotationItem::VERTICAL_LINE_LENGTH : AnnotationItem::TOP_HEIGHT - AnnotationItem::VERTICAL_LINE_LENGTH;
|
||||||
|
|
||||||
const auto labelRect = QRect(
|
const auto labelRect = QRect(
|
||||||
(this->width - labelSize.width()) / 2,
|
(this->width - labelSize.width()) / 2,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ namespace Bloom::Widgets
|
|||||||
public:
|
public:
|
||||||
static constexpr int TOP_HEIGHT = 26;
|
static constexpr int TOP_HEIGHT = 26;
|
||||||
static constexpr int BOTTOM_HEIGHT = 26;
|
static constexpr int BOTTOM_HEIGHT = 26;
|
||||||
|
static constexpr int VERTICAL_LINE_LENGTH = 5;
|
||||||
|
|
||||||
const int width;
|
const int width;
|
||||||
const int height;
|
const int height;
|
||||||
|
|||||||
Reference in New Issue
Block a user