mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Adjust arrow offset calculation.
This commit is contained in:
parent
4487564f7d
commit
d78e43a403
@ -830,8 +830,7 @@ void DisassemblyLeftPanel::paintEvent(QPaintEvent *event)
|
|||||||
constexpr int arrowWidth = 5;
|
constexpr int arrowWidth = 5;
|
||||||
int rightOffset = size().rwidth();
|
int rightOffset = size().rwidth();
|
||||||
auto tEdit = qobject_cast<DisassemblyTextEdit*>(disas->getTextWidget());
|
auto tEdit = qobject_cast<DisassemblyTextEdit*>(disas->getTextWidget());
|
||||||
int topOffset = int(tEdit->document()->documentMargin() + tEdit->contentsMargins().top() +
|
int topOffset = int(tEdit->document()->documentMargin() + tEdit->contentsMargins().top());
|
||||||
disas->contentsMargins().top());
|
|
||||||
int lineHeight = disas->getFontMetrics().height();
|
int lineHeight = disas->getFontMetrics().height();
|
||||||
QColor arrowColorDown = ConfigColor("flow");
|
QColor arrowColorDown = ConfigColor("flow");
|
||||||
QColor arrowColorUp = ConfigColor("cflow");
|
QColor arrowColorUp = ConfigColor("cflow");
|
||||||
|
Loading…
Reference in New Issue
Block a user