diff d2/qt/core/QPoint.d @ 371:12f60887ed15

add elasticnodes example and necessary changes to the library.
author Eldar Insafutdinov
date Wed, 07 Jul 2010 22:54:12 +0100
parents 96a75b1e5b26
children 1f189d0ceab4
line wrap: on
line diff
--- a/d2/qt/core/QPoint.d	Sun Jul 04 14:17:49 2010 +0100
+++ b/d2/qt/core/QPoint.d	Wed Jul 07 22:54:12 2010 +0100
@@ -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));
     }
@@ -251,4 +251,4 @@
 private extern(C) void  qtd_QPointF_writeTo_QDataStream(void* __this_nativeId,
  void* arg__1);
 private extern(C) void  qtd_QPointF_readFrom_QDataStream(void* __this_nativeId,
- void* arg__1);
\ No newline at end of file
+ void* arg__1);