summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxitem.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-16 06:26:46 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-09-16 06:26:46 (GMT)
commit633b4b0655bf47b6f5100ee9a6c2f692b0aeb081 (patch)
treed5deeb37b770f2fdff140c2f75a1f38a992da2be /src/declarative/fx/qfxitem.cpp
parentd3b03a7d6c4ad023572d7099ee9f9ec3f0711d04 (diff)
downloadQt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.zip
Qt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.tar.gz
Qt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.tar.bz2
Experiment with implicitWidth and implicitHeight functions.
Diffstat (limited to 'src/declarative/fx/qfxitem.cpp')
-rw-r--r--src/declarative/fx/qfxitem.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp
index 962fee2..c7e807c 100644
--- a/src/declarative/fx/qfxitem.cpp
+++ b/src/declarative/fx/qfxitem.cpp
@@ -2688,9 +2688,16 @@ void QFxItem::setWidth(qreal w)
QRectF(x(), y(), oldWidth, height()));
}
+qreal QFxItem::implicitWidth() const
+{
+ Q_D(const QFxItem);
+ return d->implicitWidth;
+}
+
void QFxItem::setImplicitWidth(qreal w)
{
Q_D(QFxItem);
+ d->implicitWidth = w;
if (d->width == w || widthValid())
return;
@@ -2733,9 +2740,16 @@ void QFxItem::setHeight(qreal h)
QRectF(x(), y(), width(), oldHeight));
}
+qreal QFxItem::implicitHeight() const
+{
+ Q_D(const QFxItem);
+ return d->implicitHeight;
+}
+
void QFxItem::setImplicitHeight(qreal h)
{
Q_D(QFxItem);
+ d->implicitHeight = h;
if (d->height == h || heightValid())
return;