create the compactRepr in the right context
This commit is contained in:
parent
b8b474068e
commit
3d48a89111
@ -150,7 +150,7 @@ void DeclarativeAppletScript::qmlCreationFinished()
|
|||||||
if (pa) {
|
if (pa) {
|
||||||
QDeclarativeComponent *iconComponent = m_declarativeWidget->rootObject()->property("compactRepresentation").value<QDeclarativeComponent *>();
|
QDeclarativeComponent *iconComponent = m_declarativeWidget->rootObject()->property("compactRepresentation").value<QDeclarativeComponent *>();
|
||||||
if (iconComponent) {
|
if (iconComponent) {
|
||||||
QDeclarativeItem *declarativeIcon = qobject_cast<QDeclarativeItem *>(iconComponent->create(m_declarativeWidget->engine()->rootContext()));
|
QDeclarativeItem *declarativeIcon = qobject_cast<QDeclarativeItem *>(iconComponent->create(iconComponent->creationContext()));
|
||||||
if (declarativeIcon) {
|
if (declarativeIcon) {
|
||||||
pa->setPopupIcon(QIcon());
|
pa->setPopupIcon(QIcon());
|
||||||
QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(a);
|
QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user