summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-04-27 02:04:16 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-04-27 02:07:31 (GMT)
commitf75b524b060682a896ac7a3951ac677d29e15727 (patch)
tree3de8ddf25b3db054caa70546ab3ed01a0b12b2f6 /src/corelib
parent63c10310c31587453ffb33fc9658ba21c751c69b (diff)
downloadQt-f75b524b060682a896ac7a3951ac677d29e15727.zip
Qt-f75b524b060682a896ac7a3951ac677d29e15727.tar.gz
Qt-f75b524b060682a896ac7a3951ac677d29e15727.tar.bz2
Simplify QMetaProperty::propertyIndex function
RevBy: Kent Hansen
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index 35ccde1..7502842 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -2070,7 +2070,7 @@ int QMetaProperty::propertyIndex() const
{
if (!mobj)
return -1;
- return ((handle - priv(mobj->d.data)->propertyData) / 3) + mobj->propertyOffset();
+ return idx + mobj->propertyOffset();
}
/*!