[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-01-21 13:29:30
Message-ID: 20110121132930.1F227AC8B8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1216118 by mart:

fix setters and getters: set the proper stuff, copy and paste--


 M  +2 -2      rect.cpp  
 M  +1 -1      size.cpp  


--- trunk/KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/rect.cpp #1216117:1216118
@@ -149,7 +149,7 @@
 {
     DECLARE_SELF(QRectF, moveLeft);
     qreal left = ctx->argument(0).toNumber();
-    self->moveBottom(left);
+    self->moveLeft(left);
     return QScriptValue();
 }
 
@@ -157,7 +157,7 @@
 {
     DECLARE_SELF(QRectF, moveRight);
     qreal right = ctx->argument(0).toNumber();
-    self->moveBottom(right);
+    self->moveRight(right);
     return QScriptValue();
 }
 
--- trunk/KDE/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/size.cpp #1216117:1216118
@@ -52,7 +52,7 @@
     DECLARE_SELF(QSizeF, height);
     if (ctx->argumentCount() > 0) {
         qreal height = ctx->argument(0).toNumber();
-        self->setWidth(height);
+        self->setHeight(height);
     }
 
     return QScriptValue(eng, self->height());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic