diff options
Diffstat (limited to 'src/declarative/items/qsgtranslate.cpp')
-rw-r--r-- | src/declarative/items/qsgtranslate.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/declarative/items/qsgtranslate.cpp b/src/declarative/items/qsgtranslate.cpp index fc2e7b3cc2..1de5c6c3ea 100644 --- a/src/declarative/items/qsgtranslate.cpp +++ b/src/declarative/items/qsgtranslate.cpp @@ -56,15 +56,29 @@ public: qreal y; }; +/*! + Constructs an empty QSGTranslate object with the given \a parent. +*/ QSGTranslate::QSGTranslate(QObject *parent) : QSGTransform(*new QSGTranslatePrivate, parent) { } +/*! + Destroys the graphics scale. +*/ QSGTranslate::~QSGTranslate() { } +/*! + \property QSGTranslate::x + \brief the horizontal translation. + + The translation can be any real number; the default value is 0.0. + + \sa y +*/ qreal QSGTranslate::x() const { Q_D(const QSGTranslate); @@ -81,6 +95,14 @@ void QSGTranslate::setX(qreal x) emit xChanged(); } +/*! + \property QSGTranslate::y + \brief the vertical translation. + + The translation can be any real number; the default value is 0.0. + + \sa x +*/ qreal QSGTranslate::y() const { Q_D(const QSGTranslate); |