diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-28 05:28:51 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-28 05:28:51 (GMT) |
commit | ef26f5c258500d98735ef3f90fa9c9576a945d56 (patch) | |
tree | bd6f9f601b13cf139fa4c0cbf5f4963c66816605 /src/declarative | |
parent | 5e6d8f06d4a85ef81ea0f64e4cd305325f82343d (diff) | |
parent | c2f7a9a0d4c8c58d117220893a0ee0b965187f4c (diff) | |
download | Qt-ef26f5c258500d98735ef3f90fa9c9576a945d56.zip Qt-ef26f5c258500d98735ef3f90fa9c9576a945d56.tar.gz Qt-ef26f5c258500d98735ef3f90fa9c9576a945d56.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/fx/qfxgridview.cpp | 7 | ||||
-rw-r--r-- | src/declarative/fx/qfxlistview.cpp | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxgridview.cpp b/src/declarative/fx/qfxgridview.cpp index 25c1565..b2fb1a1 100644 --- a/src/declarative/fx/qfxgridview.cpp +++ b/src/declarative/fx/qfxgridview.cpp @@ -79,8 +79,11 @@ public: } static QFxGridViewAttached *properties(QObject *obj) { - QFxGridViewAttached *rv = new QFxGridViewAttached(obj); - attachedProperties.insert(obj, rv); + QFxGridViewAttached *rv = attachedProperties.value(obj); + if(!rv) { + rv = new QFxGridViewAttached(obj); + attachedProperties.insert(obj, rv); + } return rv; } diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp index c85d8ce..76f7e11 100644 --- a/src/declarative/fx/qfxlistview.cpp +++ b/src/declarative/fx/qfxlistview.cpp @@ -98,8 +98,11 @@ public: } static QFxListViewAttached *properties(QObject *obj) { - QFxListViewAttached *rv = new QFxListViewAttached(obj); - attachedProperties.insert(obj, rv); + QFxListViewAttached *rv = attachedProperties.value(obj); + if (!rv) { + rv = new QFxListViewAttached(obj); + attachedProperties.insert(obj, rv); + } return rv; } |