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

svn path=/trunk/KDE/kdebase/runtime/; revision=1216118
This commit is contained in:
Marco Martin 2011-01-21 13:29:29 +00:00
parent 45c6ac7dfb
commit 583e3c168b
2 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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());