Q_OBJECT
Q_DECLARE_PRIVATE(QDeclarativePropertyAction)
- Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged)
+ Q_PROPERTY(QObject *target READ target WRITE setTargetObject NOTIFY targetChanged)
Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged)
Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged)
Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets)
virtual ~QDeclarativePropertyAction();
QObject *target() const;
- void setTarget(QObject *);
+ void setTargetObject(QObject *);
QString property() const;
void setProperty(const QString &);
Q_PROPERTY(QVariant from READ from WRITE setFrom NOTIFY fromChanged)
Q_PROPERTY(QVariant to READ to WRITE setTo NOTIFY toChanged)
Q_PROPERTY(QEasingCurve easing READ easing WRITE setEasing NOTIFY easingChanged)
- Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged)
+ Q_PROPERTY(QObject *target READ target WRITE setTargetObject NOTIFY targetChanged)
Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged)
Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged)
Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets)
void setEasing(const QEasingCurve &);
QObject *target() const;
- void setTarget(QObject *);
+ void setTargetObject(QObject *);
QString property() const;
void setProperty(const QString &);
{
QQuickRectangle rect;
QDeclarativePropertyAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setTo(200);
QVERIFY(animation.target() == &rect);
{
QQuickRectangle rect;
QDeclarativeNumberAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setTo(200);
QVERIFY(animation.target() == &rect);
{
QQuickRectangle rect;
QDeclarativeColorAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("color");
animation.setTo(QColor("red"));
QVERIFY(animation.target() == &rect);
{
QQuickRectangle rect;
QDeclarativeRotationAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("rotation");
animation.setTo(270);
QVERIFY(animation.target() == &rect);
{
QQuickRectangle rect;
QDeclarativePropertyAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setTo(200);
animation.setDuration(1000);
{
QQuickRectangle rect;
QDeclarativePropertyAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setFrom(1);
animation.setTo(200);
{
QQuickRectangle rect;
QDeclarativePropertyAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setFrom(10);
animation.setTo(200);
{
QQuickRectangle rect;
QDeclarativeNumberAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("border.width");
animation.setTo(10);
animation.start();
{
QQuickRectangle rect;
QDeclarativePropertyAnimation animation;
- animation.setTarget(&rect);
+ animation.setTargetObject(&rect);
animation.setProperty("x");
animation.setTo(200);
animation.setDuration(1000);