summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxitem_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxitem_p.h')
-rw-r--r--src/declarative/fx/qfxitem_p.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxitem_p.h b/src/declarative/fx/qfxitem_p.h
index 054bdc7..df75148 100644
--- a/src/declarative/fx/qfxitem_p.h
+++ b/src/declarative/fx/qfxitem_p.h
@@ -108,7 +108,7 @@ public:
widthValid(false), heightValid(false),
_componentComplete(true), _keepMouse(false),
smooth(false), keyHandler(0),
- width(0), height(0)
+ width(0), height(0), implicitWidth(0), implicitHeight(0)
{}
~QFxItemPrivate()
{ delete _anchors; }
@@ -213,6 +213,8 @@ public:
qreal width;
qreal height;
+ qreal implicitWidth;
+ qreal implicitHeight;
QPointF computeTransformOrigin() const;
@@ -224,8 +226,11 @@ public:
q->geometryChanged(QRectF(this->pos.x(), this->pos.y(), width, height), oldGeometry);
}
- // Inherited from QGraphcisItemPrivate
- virtual void focusedInScopeChanged();
+ // Reimplemented from QGraphicsItemPrivate
+ virtual void subFocusItemChange()
+ {
+ emit q_func()->wantsFocusChanged();
+ }
};
QT_END_NAMESPACE