Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/appletquickitem.cpp
Show First 20 Lines • Show All 696 Lines • ▼ Show 20 Line(s) | |||||
697 | 697 | | |||
698 | bool AppletQuickItem::isExpanded() const | 698 | bool AppletQuickItem::isExpanded() const | ||
699 | { | 699 | { | ||
700 | return d->expanded; | 700 | return d->expanded; | ||
701 | } | 701 | } | ||
702 | 702 | | |||
703 | void AppletQuickItem::setExpanded(bool expanded) | 703 | void AppletQuickItem::setExpanded(bool expanded) | ||
704 | { | 704 | { | ||
705 | if (d->applet->isContainment()) { | | |||
706 | expanded = true; | | |||
707 | } | | |||
708 | | ||||
709 | //if there is no compact representation it means it's always expanded | | |||
710 | //Containments are always expanded | | |||
711 | if (d->expanded == expanded) { | 705 | if (d->expanded == expanded) { | ||
712 | return; | 706 | return; | ||
713 | } | 707 | } | ||
714 | 708 | | |||
715 | if (expanded) { | 709 | if (expanded) { | ||
716 | d->createFullRepresentationItem(); | 710 | d->createFullRepresentationItem(); | ||
717 | if (!d->applet->isContainment() && | 711 | if (!d->applet->isContainment() && | ||
718 | (!d->preferredRepresentation || | 712 | (!d->preferredRepresentation || | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |