Mercurial > projects > qtd
diff d2/qt/core/QPoint.d @ 373:1f189d0ceab4
merge
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 08 Jul 2010 17:20:02 +0300 |
parents | a032df77b6ab 12f60887ed15 |
children |
line wrap: on
line diff
--- a/d2/qt/core/QPoint.d Thu Jul 08 17:19:05 2010 +0300 +++ b/d2/qt/core/QPoint.d Thu Jul 08 17:20:02 2010 +0300 @@ -139,17 +139,17 @@ yp = p.y(); } - bool isNull() //const + bool isNull() const { return qIsNull(xp) && qIsNull(yp); } - qreal x() //const + qreal x() const { return xp; } - qreal y() //const + qreal y() const { return yp; } @@ -164,12 +164,12 @@ yp = ypos; } /* -inline qreal &QPointF::rx() +ref qreal rx() { return xp; } -inline qreal &QPointF::ry() +ref qreal ry() { return yp; } @@ -208,7 +208,7 @@ return QPointF(xp/c, yp/c); } - QPoint toPoint() //const + QPoint toPoint() const { return QPoint(qRound(xp), qRound(yp)); }