summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativepropertychanges_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-12-20 22:53:00 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-12-21 04:29:02 (GMT)
commita764a0b5d66e13fb69a5b69330c5edfecf89ee8b (patch)
tree7834173306a0ff6aca1e68e9aa120418f83e5901 /src/declarative/util/qdeclarativepropertychanges_p.h
parent1476bf8d45b4f1ab6c56770939eb81c4c1b390ad (diff)
downloadQt-a764a0b5d66e13fb69a5b69330c5edfecf89ee8b.zip
Qt-a764a0b5d66e13fb69a5b69330c5edfecf89ee8b.tar.gz
Qt-a764a0b5d66e13fb69a5b69330c5edfecf89ee8b.tar.bz2
Optimize QByteArray to QString conversion in PropertyChanges.
Perform the conversion once at compile time, rather than many times later. Task-number: QTBUG-15331 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/util/qdeclarativepropertychanges_p.h')
-rw-r--r--src/declarative/util/qdeclarativepropertychanges_p.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/declarative/util/qdeclarativepropertychanges_p.h b/src/declarative/util/qdeclarativepropertychanges_p.h
index 449574c..1a98cec 100644
--- a/src/declarative/util/qdeclarativepropertychanges_p.h
+++ b/src/declarative/util/qdeclarativepropertychanges_p.h
@@ -75,19 +75,19 @@ public:
virtual ActionList actions();
- bool containsProperty(const QByteArray &name) const;
- bool containsValue(const QByteArray &name) const;
- bool containsExpression(const QByteArray &name) const;
- void changeValue(const QByteArray &name, const QVariant &value);
- void changeExpression(const QByteArray &name, const QString &expression);
- void removeProperty(const QByteArray &name);
- QVariant value(const QByteArray &name) const;
- QString expression(const QByteArray &name) const;
+ bool containsProperty(const QString &name) const;
+ bool containsValue(const QString &name) const;
+ bool containsExpression(const QString &name) const;
+ void changeValue(const QString &name, const QVariant &value);
+ void changeExpression(const QString &name, const QString &expression);
+ void removeProperty(const QString &name);
+ QVariant value(const QString &name) const;
+ QString expression(const QString &name) const;
void detachFromState();
void attachToState();
- QVariant property(const QByteArray &name) const;
+ QVariant property(const QString &name) const;
};
class QDeclarativePropertyChangesParser : public QDeclarativeCustomParser