possible to set expanded=false for a containment

Summary:
it will still have no visible effect, but
is possible to read and write the property if
containments make use of it (the systray uses it for
opening/closing its popup)

Test Plan: setting expanded : false to containments doesn't break them

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D4866
This commit is contained in:
Marco Martin 2017-03-01 15:23:24 +01:00
parent 7af319fc5e
commit fba9e9e151

View File

@ -702,12 +702,6 @@ bool AppletQuickItem::isExpanded() const
void AppletQuickItem::setExpanded(bool expanded)
{
if (d->applet->isContainment()) {
expanded = true;
}
//if there is no compact representation it means it's always expanded
//Containments are always expanded
if (d->expanded == expanded) {
return;
}