diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-27 02:04:16 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-27 02:07:31 (GMT) |
commit | f75b524b060682a896ac7a3951ac677d29e15727 (patch) | |
tree | 3de8ddf25b3db054caa70546ab3ed01a0b12b2f6 /src/corelib | |
parent | 63c10310c31587453ffb33fc9658ba21c751c69b (diff) | |
download | Qt-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.cpp | 2 |
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(); } /*! |