16
16
import QtQuick
17
17
18
18
/*!
19
- \qmltype ColumnFlow
20
- \inqmlmodule Fluid
21
- \ingroup fluid
22
-
23
19
\brief Automatically position children in columns.
24
20
25
- \code
21
+ \code{.qml}
26
22
import QtQuick
27
23
import Fluid as Fluid
28
24
@@ -51,24 +47,18 @@ Item {
51
47
id: columnFlow
52
48
53
49
/* !
54
- \qmlproperty int columnWidth
55
-
56
50
Column width.
57
51
This property is \c 100 by default.
58
52
*/
59
53
property int columnWidth: 100
60
54
61
55
/* !
62
- \qmlproperty int columns
63
-
64
56
Number of columns.
65
57
By default it fits as many columns as possible.
66
58
*/
67
59
property int columns: Math .max (0 , Math .floor (width / columnWidth))
68
60
69
61
/* !
70
- \qmlproperty any model
71
-
72
62
The model providing data to the column flow.
73
63
74
64
This property can be set to any of the supported \l {qml-data-models}{data models}.
@@ -78,24 +68,18 @@ Item {
78
68
property alias model: repeater .model
79
69
80
70
/* !
81
- \qmlproperty Component delegate
82
-
83
71
The delegate provides a template defining each item istantiated by the column flow.
84
72
85
73
\sa Repeater::delegate
86
74
*/
87
75
property alias delegate: repeater .delegate
88
76
89
77
/* !
90
- \qmlproperty int contentHeight
91
-
92
78
Content height.
93
79
*/
94
80
property int contentHeight: 0
95
81
96
82
/* !
97
- \qmlproperty bool repeaterCompleted
98
-
99
83
This property holds whether the layout is done.
100
84
*/
101
85
readonly property alias repeaterCompleted: __private .repeaterCompleted
@@ -114,8 +98,6 @@ Item {
114
98
}
115
99
116
100
/* !
117
- \qmlmethod void ColumnFlow::updateWidths()
118
-
119
101
Set the width of all delegates.
120
102
*/
121
103
function updateWidths () {
@@ -134,8 +116,6 @@ Item {
134
116
}
135
117
136
118
/* !
137
- \qmlmethod void ColumnFlow::reEvalColumns()
138
-
139
119
Relayout the columns.
140
120
*/
141
121
function reEvalColumns () {
0 commit comments