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

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

SVN commit 1216120 by mart:

backport setter and getter fix


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


--- branches/KDE/4.6/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/rect.cpp \
#1216119:1216120 @@ -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();
 }
 
--- branches/KDE/4.6/kdebase/runtime/plasma/scriptengines/javascript/simplebindings/size.cpp \
#1216119:1216120 @@ -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