fix setters and getters: set the proper stuff, copy and paste--
svn path=/trunk/KDE/kdebase/runtime/; revision=1216118
This commit is contained in:
parent
45c6ac7dfb
commit
583e3c168b
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user