summaryrefslogtreecommitdiffstats
path: root/examples/script
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-15 08:59:29 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-06 13:32:52 (GMT)
commitb4264b12a51ecea93517a84f94c15f8e97b2f50f (patch)
treeae660f111db511a5d6d86381a1688c195627aac2 /examples/script
parent6fb50f9180f990ffa68feb6b5c43030aa36a7093 (diff)
downloadQt-b4264b12a51ecea93517a84f94c15f8e97b2f50f.zip
Qt-b4264b12a51ecea93517a84f94c15f8e97b2f50f.tar.gz
Qt-b4264b12a51ecea93517a84f94c15f8e97b2f50f.tar.bz2
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 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