summaryrefslogtreecommitdiffstats
path: root/examples/script
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-15 10:59:29 +0200
committerKent Hansen <khansen@trolltech.com>2009-07-15 10:59:29 +0200
commit5e315e3ef4b992b43ac27abbf33187c6053f0435 (patch)
tree0fd1ac571aaa54bef65a93925d9244c65773e6d1 /examples/script
parent2fe8eb61d878c74674415ec32d1d0b420a7c656f (diff)
implement name() function of custom property iterator
Diffstat (limited to 'examples/script')
-rw-r--r--examples/script/customclass/bytearrayclass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/script/customclass/bytearrayclass.cpp b/examples/script/customclass/bytearrayclass.cpp
index 81a0b8aacd..c3e7480a26 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