From 5e315e3ef4b992b43ac27abbf33187c6053f0435 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 15 Jul 2009 10:59:29 +0200 Subject: implement name() function of custom property iterator --- examples/script/customclass/bytearrayclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/script/customclass/bytearrayclass.cpp b/examples/script/customclass/bytearrayclass.cpp index 81a0b8a..c3e7480 100644 --- a/examples/script/customclass/bytearrayclass.cpp +++ b/examples/script/customclass/bytearrayclass.cpp @@ -294,7 +294,7 @@ void ByteArrayClassPropertyIterator::toBack() QScriptString ByteArrayClassPropertyIterator::name() const { - return QScriptString(); + return object().engine()->toStringHandle(QString::number(m_last)); } uint ByteArrayClassPropertyIterator::id() const -- cgit v0.12