14QJSValue DeclarativeSsuFeatureModel::get(
int index)
const
16 if (index < 0 || index >= count()) {
17 qmlInfo(
this) <<
"Index" << index <<
"out of bounds";
20 const QHash<QByteArray, QString> feature = featureAt(index);
22 QJSEngine *
const engine = qmlEngine(
this);
23 QJSValue value = engine->newObject();
25 QHash<QByteArray, QString>::const_iterator i = feature.constBegin();
26 while (i != feature.constEnd()) {
27 value.setProperty(QString::fromLatin1(i.key()), i.value());