#include <QtQuick/private/qquickpropertychanges_p.h>
#include <QtQuick/private/qquickstate_p.h>
#include <qqmlproperty.h>
-#include <QtCore/QWeakPointer>
+#include <QtCore/QPointer>
QT_BEGIN_NAMESPACE
private:
void buildStatesList(QObject *obj);
- QList<QWeakPointer<QQuickState> > m_allStates;
+ QList<QPointer<QQuickState> > m_allStates;
};
QQmlQtQuick2DebugStatesDelegate::QQmlQtQuick2DebugStatesDelegate()
const QString &fileName, int line, int column,
bool *inBaseState)
{
+ typedef QPointer<QQuickState> QuickStatePointer;
QObject *object = property.object();
QString propertyName = property.name();
- foreach (QWeakPointer<QQuickState> statePointer, m_allStates) {
+ foreach (const QuickStatePointer& statePointer, m_allStates) {
if (QQuickState *state = statePointer.data()) {
// here we assume that the revert list on itself defines the base state
if (state->isStateActive() && state->containsPropertyInRevertList(object, propertyName)) {