From 583e3c168b1402ef8573c1386e1f9f5c88b0d54d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 21 Jan 2011 13:29:29 +0000 Subject: [PATCH] fix setters and getters: set the proper stuff, copy and paste-- svn path=/trunk/KDE/kdebase/runtime/; revision=1216118 --- scriptengines/javascript/simplebindings/rect.cpp | 4 ++-- scriptengines/javascript/simplebindings/size.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scriptengines/javascript/simplebindings/rect.cpp b/scriptengines/javascript/simplebindings/rect.cpp index f59881abc..ac2382c50 100644 --- a/scriptengines/javascript/simplebindings/rect.cpp +++ b/scriptengines/javascript/simplebindings/rect.cpp @@ -149,7 +149,7 @@ static QScriptValue moveLeft(QScriptContext *ctx, QScriptEngine *) { DECLARE_SELF(QRectF, moveLeft); qreal left = ctx->argument(0).toNumber(); - self->moveBottom(left); + self->moveLeft(left); return QScriptValue(); } @@ -157,7 +157,7 @@ static QScriptValue moveRight(QScriptContext *ctx, QScriptEngine *) { DECLARE_SELF(QRectF, moveRight); qreal right = ctx->argument(0).toNumber(); - self->moveBottom(right); + self->moveRight(right); return QScriptValue(); } diff --git a/scriptengines/javascript/simplebindings/size.cpp b/scriptengines/javascript/simplebindings/size.cpp index aaab523e7..3f41b46f1 100644 --- a/scriptengines/javascript/simplebindings/size.cpp +++ b/scriptengines/javascript/simplebindings/size.cpp @@ -52,7 +52,7 @@ static QScriptValue height(QScriptContext *ctx, QScriptEngine *eng) 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());