org::kde::plasma::extras::Representation

Search for usage in LXR

org::kde::plasma::extras::Representation Class Reference
Inheritance diagram for org::kde::plasma::extras::Representation:

Properties

bool collapseMarginsHint
 

Detailed Description

Item to be used as root item for representations (full and compact) of plasmoids.

Since
2.0 It's a QtQuickControls2 Page, and like that one, has an header, a contentItem and a Footer It may go over the plasmoid edges (both on desktop and popups) with the properties applyHorizontalPadding and applyVerticalPadding. When the contentItem is a ScrollView or a Scrollarea, the plasmoid margins will be automatically removed.

This code will create a full representation with a listview that will automatically fill the whole area without margins from the plasmoid popup borders

Plasmoid.Representation: PlasmaExtras.Representation {
header: PlasmaExtras.BasicPlasmoidHeading {}
contentItem: PlasmaComponent.ScrollView {
ListView {
// ...
}
}
}
Since
5.77

Definition at line 34 of file Representation.qml.

Property Documentation

◆ collapseMarginsHint

bool org::kde::plasma::extras::Representation::collapseMarginsHint
read

collapseMarginsHint: bool if true, the representation will remove any borders its container may have put and will be collapsed above its borders

Definition at line 41 of file Representation.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 04:06:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.