From b4264b12a51ecea93517a84f94c15f8e97b2f50f 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 2044a16..8fe1a96 100644 --- a/examples/script/customclass/bytearrayclass.cpp +++ b/examples/script/customclass/bytearrayclass.cpp @@ -297,7 +297,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