Representation

Search for usage in LXR

Representation Class Reference
Inheritance diagram for Representation:

Properties

bool collapseMarginsHint
 

Detailed Description

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

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 31 of file Representation.qml.

Property Documentation

◆ collapseMarginsHint

bool 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 38 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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.