Commit 5cd1e6a7 authored by Marco Martin's avatar Marco Martin

use the new containmentDisplayHints flags

this doesn't use any preexisting property, so won't cause regressions
due to slight behavior changes
parent c1d35c0a
......@@ -95,7 +95,7 @@ ColumnLayout {
}
}
PlasmaComponents3.ToolButton {
visible: plasmoid.containmentType !== PlasmaCore.Types.CustomEmbeddedContainment
visible: !(plasmoid.containmentDisplayHints & PlasmaCore.Types.ContainmentDrawsPlasmoidHeading)
icon.name: "edit-clear-history"
onClicked: {
......
......@@ -39,7 +39,7 @@ PlasmaComponents3.Page {
Layout.minimumHeight: units.gridUnit * 12
header: PlasmaExtras.BasicPlasmoidHeading {
visible: plasmoid.containmentType !== PlasmaCore.Types.CustomEmbeddedContainment || devicenotifier.mountedRemovables > 1
visible: !(plasmoid.containmentDisplayHints & PlasmaCore.Types.ContainmentDrawsPlasmoidHeading) || devicenotifier.mountedRemovables > 1
PlasmaComponents3.ToolButton {
id: unmountAll
visible: devicenotifier.mountedRemovables > 1;
......
......@@ -48,6 +48,7 @@ SystemTray::SystemTray(QObject *parent, const QVariantList &args) :
{
setHasConfigurationInterface(true);
setContainmentType(Plasma::Types::CustomEmbeddedContainment);
setContainmentDisplayHints(Plasma::Types::ContainmentDrawsPlasmoidHeading | Plasma::Types::ContainmentForcesSquarePlasmoids);
}
SystemTray::~SystemTray()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment