diff options
author | Marek Rosa <marek.rosa@digia.com> | 2012-12-13 16:43:09 +0200 |
---|---|---|
committer | Marek Rosa <marek.rosa@digia.com> | 2012-12-13 16:43:09 +0200 |
commit | 150f5f56819e1204aed8631adf1a26a2b14b6185 (patch) | |
tree | 887e1e4bf446d7d168e6bde64ee08054cdb9ce63 /demos | |
parent | ca970450e5ca4f85097851c0a373ded346edc54e (diff) |
Minor docs updates
Diffstat (limited to 'demos')
-rw-r--r-- | demos/callout/callout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/callout/callout.cpp b/demos/callout/callout.cpp index e6dc5ed5..22130e20 100644 --- a/demos/callout/callout.cpp +++ b/demos/callout/callout.cpp @@ -31,7 +31,7 @@ void Callout::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q if (!m_rect.contains(anchor)) { QPointF point1, point2; - // establish the position of the anchor point in relation to m_textRect + // establish the position of the anchor point in relation to m_rect bool above = anchor.y() <= m_rect.top(); bool aboveCenter = anchor.y() > m_rect.top() && anchor.y() <= m_rect.center().y(); bool belowCenter = anchor.y() > m_rect.center().y() && anchor.y() <= m_rect.bottom(); @@ -42,7 +42,7 @@ void Callout::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q bool rightOfCenter = anchor.x() > m_rect.center().x() && anchor.x() <= m_rect.right(); bool onRight = anchor.x() > m_rect.right(); - // get the nearest m_textRect corner. + // get the nearest m_rect corner. qreal x = (onRight + rightOfCenter) * m_rect.width(); qreal y = (below + belowCenter) * m_rect.height(); bool cornerCase = (above && onLeft) || (above && onRight) || (below && onLeft) || (below && onRight); |