resize DeclarativeItemContainer at item's size
This commit is contained in:
parent
e76914ed89
commit
c216fe47b8
@ -43,6 +43,7 @@ public:
|
|||||||
static_cast<QGraphicsItem *>(item)->setParentItem(this);
|
static_cast<QGraphicsItem *>(item)->setParentItem(this);
|
||||||
setMinimumWidth(item->implicitWidth());
|
setMinimumWidth(item->implicitWidth());
|
||||||
setMinimumHeight(item->implicitHeight());
|
setMinimumHeight(item->implicitHeight());
|
||||||
|
resize(item->width(), item->height());
|
||||||
}
|
}
|
||||||
|
|
||||||
QDeclarativeItem *declarativeItem() const
|
QDeclarativeItem *declarativeItem() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user