FormGridContainer

Search for usage in LXR

FormGridContainer Class Reference
Inheritance diagram for FormGridContainer:

Properties

real bottomPadding
 
bool cardWidthRestricted
 
real horizontalPadding
 
list< QtObject > infoCards
 
real leftPadding
 
real maximumWidth
 
real padding
 
real rightPadding
 
real topPadding
 
real verticalPadding
 

Additional Inherited Members

- Public Member Functions inherited from QtQuick.Item
 childAt (real x, real y)
 
bool contains (point point)
 
 dumpItemTree ()
 
 forceActiveFocus ()
 
 forceActiveFocus (Qt::FocusReason reason)
 
bool grabToImage (callback, targetSize)
 
point mapFromGlobal (real x, real y)
 
point mapFromItem (Item item, point p)
 
point mapFromItem (Item item, real x, real y)
 
rect mapFromItem (Item item, real x, real y, real width, real height)
 
rect mapFromItem (Item item, rect r)
 
point mapToGlobal (real x, real y)
 
point mapToItem (Item item, point p)
 
point mapToItem (Item item, real x, real y)
 
rect mapToItem (Item item, real x, real y, real width, real height)
 
rect mapToItem (Item item, rect r)
 
 nextItemInFocusChain (bool forward)
 

Detailed Description

This component render a grid of small cards.

This is used to display multiple information in a FormCard.FormLayout without taking too much vertical space.

import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormGridContainer {
id: container
Layout.topMargin: Kirigami.Units.largeSpacing
Layout.fillWidth: true
infoCards: [
FormCard.FormGridContainer.InfoCard {
title: "42"
subtitle: i18nc("@info:Number of Posts", "Posts")
},
FormCard.FormGridContainer.InfoCard {
title: "42"
subtitle: i18nc("@info:Number of followers.", "Followers")
}
]
}
A single card that follows a form style.
Definition FormCard.qml:35
QString i18nc(const char *context, const char *text, const TYPE &arg...)
Since
KirigamiAddons 0.11.0

Definition at line 44 of file FormGridContainer.qml.

Property Documentation

◆ bottomPadding

real FormGridContainer::bottomPadding
read

Definition at line 63 of file FormGridContainer.qml.

◆ cardWidthRestricted

bool FormGridContainer::cardWidthRestricted
read

This property holds whether the card's width is being restricted.

Remarks
This property is read-only

Definition at line 72 of file FormGridContainer.qml.

◆ horizontalPadding

real FormGridContainer::horizontalPadding
read

Definition at line 59 of file FormGridContainer.qml.

◆ infoCards

list<QtObject> FormGridContainer::infoCards
read

This property holds the InfoCards which should be displayed.

Each InfoCard contains a title and an optional subtitle

import org.kde.kirigamiaddons.formcard as FormCard
FormCard.FormGridContainer {
infoCards: [
FormCard.FormGridContainer.InfoCard {
title: "42"
subtitle: i18nc("@info:Number of Posts", "Posts")
},
FormCard.FormGridContainer.InfoCard {
title: "42"
},
FormCard.FormGridContainer.InfoCard {
title: "Details"
action: Kirigami.Action {
onClicked: pageStack.push("Details.qml")
}
}
]
}

Definition at line 100 of file FormGridContainer.qml.

◆ leftPadding

real FormGridContainer::leftPadding
read

Definition at line 65 of file FormGridContainer.qml.

◆ maximumWidth

real FormGridContainer::maximumWidth
read

This property holds the maximum width of the grid.

Definition at line 49 of file FormGridContainer.qml.

◆ padding

real FormGridContainer::padding
read

This property holds the padding used around the content edges.

default: 0

Definition at line 55 of file FormGridContainer.qml.

◆ rightPadding

real FormGridContainer::rightPadding
read

Definition at line 67 of file FormGridContainer.qml.

◆ topPadding

real FormGridContainer::topPadding
read

Definition at line 61 of file FormGridContainer.qml.

◆ verticalPadding

real FormGridContainer::verticalPadding
read

Definition at line 57 of file FormGridContainer.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 Jul 19 2024 11:50:50 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.