mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
Fix ftbfs on macOS
This commit is contained in:
parent
cc7e185d59
commit
c6739b5bec
@ -147,15 +147,16 @@ void TerminalStripDrawer::paint(QPainter *painter)
|
|||||||
painter->save();
|
painter->save();
|
||||||
if (const auto bridge_ = shared_real_terminal->bridge())
|
if (const auto bridge_ = shared_real_terminal->bridge())
|
||||||
{
|
{
|
||||||
const auto anchor_center{m_pattern.m_bridge_point_d/2};
|
const auto x_anchor{terminal_rect.width()/2};
|
||||||
|
const auto y_anchor {m_pattern.m_bridge_point_y_offset[index_]};
|
||||||
|
const auto radius_anchor{m_pattern.m_bridge_point_d/2};
|
||||||
|
|
||||||
painter->setBrush(Qt::SolidPattern);
|
painter->setBrush(Qt::SolidPattern);
|
||||||
painter->drawEllipse(QPointF{terminal_rect.width()/2, m_pattern.m_bridge_point_y_offset[index_]},
|
painter->drawEllipse(QPointF(x_anchor, y_anchor),
|
||||||
anchor_center,
|
radius_anchor, radius_anchor);
|
||||||
anchor_center);
|
|
||||||
|
|
||||||
auto anchor_points{bridges_anchor_points.value(bridge_->uuid())};
|
auto anchor_points{bridges_anchor_points.value(bridge_->uuid())};
|
||||||
anchor_points.append(QPointF{x_offset + terminal_rect.width()/2,
|
anchor_points.append(QPointF(x_offset + x_anchor, y_anchor));
|
||||||
m_pattern.m_bridge_point_y_offset[index_]});
|
|
||||||
bridges_anchor_points.insert(bridge_->uuid(), anchor_points);
|
bridges_anchor_points.insert(bridge_->uuid(), anchor_points);
|
||||||
}
|
}
|
||||||
painter->restore();
|
painter->restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user