need to return a QIcon otherwise the poor little binding's head gets confused
svn path=/branches/KDE/4.4/kdebase/runtime/; revision=1097599
This commit is contained in:
parent
27f03c699c
commit
b7df47cda9
@ -34,7 +34,8 @@ static QScriptValue ctor(QScriptContext *ctx, QScriptEngine *eng)
|
||||
if (ctx->argumentCount() > 0) {
|
||||
QScriptValue v = ctx->argument(0);
|
||||
if (v.isString()) {
|
||||
return qScriptValueFromValue(eng, KIcon(v.toString()));
|
||||
QIcon icon = KIcon(v.toString());
|
||||
return qScriptValueFromValue(eng, icon);
|
||||
} else if (v.isVariant()) {
|
||||
QVariant variant = v.toVariant();
|
||||
QPixmap p = variant.value<QPixmap>();
|
||||
|
Loading…
Reference in New Issue
Block a user