Verified Commit 9e12188f authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Add default value

parent 0d5f1319
Pipeline #91042 passed with stage
in 50 seconds
......@@ -76,7 +76,9 @@ Controls.Action {
/**
* This property holds a combination of values from the Action.DisplayHint enum.
* These are provided to implementations to indicate a preference for certain display
* styles. The default is DisplayHint.NoPreference.
* styles.
*
* By default there is no display hint (`DisplayHint.NoPreference`).
*
* @note This property contains only preferences, implementations may choose to disregard them.
*
......
......@@ -58,6 +58,8 @@ Controls.Control {
* * `Button.TextOnly`
* * `Button.TextBesideIcon`
* * `Button.TextUnderIcon`
*
* By default the text is display beside the icon.
*/
property int display: Controls.Button.TextBesideIcon
......@@ -68,6 +70,8 @@ Controls.Control {
* we need to determine how to place the delegates. This property determines
* how to do that.
*
* By default the buttons are right-aligned.
*
* @property Qt::Alignment alignment
*/
property alias alignment: layout.alignment
......@@ -101,6 +105,8 @@ Controls.Control {
/**
* This property holds the name of the icon to use for the overflow menu button.
*
* By default this is "overflow-menu".
*
* @since 5.65
* @since 2.12
*/
......
......@@ -12,11 +12,14 @@ import "private"
/**
* This is the standard layout of a Card.
*
* It is recommended to use this class when the concept of Cards is needed
* in the application.
*
* This Card has default items as header and footer. The header is an
* image that can contain an optional title and icon, accessible via the
* banner grouped property.
*
* The footer will show a series of toolbuttons (and eventual overflow menu)
* representing the actions list accessible with the list property actions.
* It is possible even tough is discouraged to override the footer:
......
......@@ -56,7 +56,9 @@ CardsGridViewPrivate {
*
* If the default needs to be overridden for some reason,
* it is advised to express this unit as a multiple
* of Kirigami.Units.gridUnit
* of Kirigami.Units.gridUnit.
*
* By default this is 20 * Kirigami.Units.gridUnit.
*/
property int maximumColumnWidth: Kirigami.Units.gridUnit * 20
......@@ -67,7 +69,10 @@ CardsGridViewPrivate {
*
* If the default needs to be overridden for some reason,
* it is advised to express this unit as a multiple
* of Kirigami.Units.gridUnit
* of Kirigami.Units.gridUnit.
*
* By default this is 12 * Kirigami.Units.gridUnit.
*
* @since 2.5
*/
property int minimumColumnWidth: Kirigami.Units.gridUnit * 12
......
......@@ -47,7 +47,9 @@ GridLayout {
*
* If the default needs to be overridden for some reason,
* it is advised to express this unit as a multiple
* of Kirigami.Units.gridUnit
* of Kirigami.Units.gridUnit.
*
* By default this is `20 * Kirigami.Units.gridUnit`.
*/
property int maximumColumnWidth: Kirigami.Units.gridUnit * 20
......@@ -57,6 +59,8 @@ GridLayout {
* The layout will try to dispose of items
* in a number of columns that will respect this size constraint.
*
* By default this is `12 * Kirigami.Units.gridUnit`.
*
* @since 2.5
*/
property int minimumColumnWidth: Kirigami.Units.gridUnit * 12
......
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