Mercurial > hg > syntilista
diff 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 |
line wrap: on
line diff
--- a/src/main.h Mon Jul 10 12:52:35 2017 +0300 +++ b/src/main.h Mon Jul 10 13:56:04 2017 +0300 @@ -316,11 +316,21 @@ m_pos.setY(m_pos.y() + boundRect().height() + yadd); } + qreal lfq(qreal yadd) + { + return m_pos.y() + boundRect().height() + yadd; + } + void lf() { lf(m_lf_add); } + qreal lfq() + { + return m_pos.y() + boundRect().height() + m_lf_add; + } + void setPos(const QPointF &pos) { m_pos = pos;