change expanded accordingly when applet expands or collapses
This commit is contained in:
parent
3858044d25
commit
cab11dd7f8
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user