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