mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeclerative: replace qVaraintFromValue() with QVariant::fromValue()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ffc882bbde
commit
ac0f452df8
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ inline void maybeTakeOwnership(const QScriptValue &value)
|
|||
template <class T>
|
||||
inline QScriptValue wrapPointer(QScriptEngine *eng, T *ptr, uint flags = 0)
|
||||
{
|
||||
return eng->newVariant(qVariantFromValue(Pointer<T>::create(ptr, flags)));
|
||||
return eng->newVariant(QVariant::fromValue(Pointer<T>::create(ptr, flags)));
|
||||
}
|
||||
|
||||
} // namespace QScript
|
||||
|
|
Loading…
Add table
Reference in a new issue