mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 18:47:28 +02:00
33 lines
927 B
C++
33 lines
927 B
C++
//
|
|
// ScriptValueIteratorQtWrapper.cpp
|
|
// libraries/script-engine/src/qtscript
|
|
//
|
|
// Created by Heather Anderson on 8/29/21.
|
|
// Copyright 2021 Vircadia contributors.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include "ScriptValueIteratorQtWrapper.h"
|
|
|
|
ScriptValue::PropertyFlags ScriptValueIteratorQtWrapper::flags() const {
|
|
return (ScriptValue::PropertyFlags)(int)_value.flags();
|
|
}
|
|
|
|
bool ScriptValueIteratorQtWrapper::hasNext() const {
|
|
return _value.hasNext();
|
|
}
|
|
|
|
QString ScriptValueIteratorQtWrapper::name() const {
|
|
return _value.name();
|
|
}
|
|
|
|
void ScriptValueIteratorQtWrapper::next() {
|
|
_value.next();
|
|
}
|
|
|
|
ScriptValuePointer ScriptValueIteratorQtWrapper::value() const {
|
|
QScriptValue result = _value.value();
|
|
return ScriptValuePointer(new ScriptValueQtWrapper(_engine, std::move(result)));
|
|
}
|