Mercurial > hg > syntilista
comparison src/main.h @ 125:6e2d26e7a0b4
Add few helpers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Jul 2017 13:56:04 +0300 |
parents | e76d85ea87ac |
children | b51cee929416 |
comparison
equal
deleted
inserted
replaced
124:a063cb8a171b | 125:6e2d26e7a0b4 |
---|---|
314 void lf(qreal yadd) | 314 void lf(qreal yadd) |
315 { | 315 { |
316 m_pos.setY(m_pos.y() + boundRect().height() + yadd); | 316 m_pos.setY(m_pos.y() + boundRect().height() + yadd); |
317 } | 317 } |
318 | 318 |
319 qreal lfq(qreal yadd) | |
320 { | |
321 return m_pos.y() + boundRect().height() + yadd; | |
322 } | |
323 | |
319 void lf() | 324 void lf() |
320 { | 325 { |
321 lf(m_lf_add); | 326 lf(m_lf_add); |
327 } | |
328 | |
329 qreal lfq() | |
330 { | |
331 return m_pos.y() + boundRect().height() + m_lf_add; | |
322 } | 332 } |
323 | 333 |
324 void setPos(const QPointF &pos) | 334 void setPos(const QPointF &pos) |
325 { | 335 { |
326 m_pos = pos; | 336 m_pos = pos; |