change expanded accordingly when applet expands or collapses

This commit is contained in:
Marco Martin 2014-02-06 13:57:53 +01:00
parent 3858044d25
commit cab11dd7f8

View File

@ -275,6 +275,8 @@ void AppletQuickItemPrivate::compactRepresentationCheck()
currentRepresentationItem = item; currentRepresentationItem = item;
connectLayoutAttached(item); connectLayoutAttached(item);
expanded = true;
emit q->expandedChanged(true);
} }
//Icon //Icon
@ -303,6 +305,8 @@ void AppletQuickItemPrivate::compactRepresentationCheck()
currentRepresentationItem = compactItem; currentRepresentationItem = compactItem;
connectLayoutAttached(compactItem); connectLayoutAttached(compactItem);
expanded = false;
emit q->expandedChanged(false);
} }
} }
} }