Adjust arrow offset calculation.

This commit is contained in:
Kārlis Seņko 2019-07-14 16:15:02 +03:00 committed by xarkes
parent 4487564f7d
commit d78e43a403

View File

@ -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");