equal
deleted
inserted
replaced
88 Q_D(QDeclarativeTranslate); |
88 Q_D(QDeclarativeTranslate); |
89 if (d->x == x) |
89 if (d->x == x) |
90 return; |
90 return; |
91 d->x = x; |
91 d->x = x; |
92 update(); |
92 update(); |
93 emit positionChanged(); |
93 emit xChanged(); |
94 } |
94 } |
95 |
95 |
96 /*! |
96 /*! |
97 \property QDeclarativeTranslate::y |
97 \property QDeclarativeTranslate::y |
98 \brief the vertical translation. |
98 \brief the vertical translation. |
111 Q_D(QDeclarativeTranslate); |
111 Q_D(QDeclarativeTranslate); |
112 if (d->y == y) |
112 if (d->y == y) |
113 return; |
113 return; |
114 d->y = y; |
114 d->y = y; |
115 update(); |
115 update(); |
116 emit positionChanged(); |
116 emit yChanged(); |
117 } |
117 } |
118 |
118 |
119 /*! |
|
120 \internal |
|
121 */ |
|
122 void QDeclarativeTranslate::applyTo(QMatrix4x4 *matrix) const |
119 void QDeclarativeTranslate::applyTo(QMatrix4x4 *matrix) const |
123 { |
120 { |
124 Q_D(const QDeclarativeTranslate); |
121 Q_D(const QDeclarativeTranslate); |
125 matrix->translate(d->x, d->y, 0); |
122 matrix->translate(d->x, d->y, 0); |
126 } |
123 } |
127 |
124 |
128 /*! |
|
129 \fn QDeclarativeTranslate::positionChanged() |
|
130 |
|
131 QDeclarativeTranslate emits this signal when its position changes. |
|
132 |
|
133 \sa QDeclarativeTranslate::x, QDeclarativeTranslate::y |
|
134 */ |
|
135 |
|
136 QT_END_NAMESPACE |
125 QT_END_NAMESPACE |