Merge lp:~kalikiana/ubuntu-ui-toolkit/splitDocs into lp:ubuntu-ui-toolkit

Proposed by Cris Dywan
Status: Merged
Approved by: Tim Peeters
Approved revision: 913
Merged at revision: 911
Proposed branch: lp:~kalikiana/ubuntu-ui-toolkit/splitDocs
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 136 lines (+45/-35)
3 files modified
modules/Ubuntu/Components/Pickers/DatePicker.qml (+28/-26)
modules/Ubuntu/Components/Popups/Popover.qml (+6/-4)
modules/Ubuntu/Components/TextField.qml (+11/-5)
To merge this branch: bzr merge lp:~kalikiana/ubuntu-ui-toolkit/splitDocs
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Review via email: mp+201199@code.launchpad.net

Commit message

Split documentation for previously group properties

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

69 - /*! \internal */
70 + /*!
71 + \qmlproperty int hours
72 + \readonly
73 + */

No need to add \qmlproperty for all of those. qdoc can detect the property type there easily.

review: Needs Fixing
Revision history for this message
Tim Peeters (tpeeters) wrote :

\readonly also is not needed, is auto-detected by qdoc

Revision history for this message
Tim Peeters (tpeeters) wrote :

22 + See maximum date (inclusive) to be shown in the picker.

See --> The

Revision history for this message
Tim Peeters (tpeeters) wrote :

Would you mind adding a short description to the properties that don't show documentation now?
for example
/*
  The currently selected month
 */
readonly property int month

Revision history for this message
Tim Peeters (tpeeters) wrote :

25 + See minimum for more details.

add \l before minimum

review: Needs Fixing
Revision history for this message
Tim Peeters (tpeeters) wrote :

134 + See horizontalAlignment for details.

add \l

Revision history for this message
Tim Peeters (tpeeters) wrote :

95 /*!
96 \qmlproperty real contentWidth
97 + The properties can be used to alter the default content width and heights.
98 + */
99 + property alias contentWidth: foreground.width
100 + /*!
101 \qmlproperty real contentHeight
102 The properties can be used to alter the default content width and heights.
103 - */
104 - property alias contentWidth: foreground.width
105 - /*! \internal */
106 + */

That sentence is a bit weird.
What about: "Use this property to override the default contents width" (and height for the other property)

911. By Cris Dywan

Have one sentence for each date alias without superfulous annotations

912. By Cris Dywan

Typos and missing \l for properties

913. By Cris Dywan

contentWidth/ height sentence rewording

Revision history for this message
Tim Peeters (tpeeters) wrote :

great, thanks

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/Ubuntu/Components/Pickers/DatePicker.qml'
2--- modules/Ubuntu/Components/Pickers/DatePicker.qml 2013-12-16 13:57:01 +0000
3+++ modules/Ubuntu/Components/Pickers/DatePicker.qml 2014-01-10 15:35:00 +0000
4@@ -223,8 +223,7 @@
5
6 /*!
7 \qmlproperty int minimum
8- \qmlproperty int maximum
9- The minimum and maximum dates (inclusive) to be shown in the picker.
10+ The minimum date (inclusive) to be shown in the picker.
11 Both year and month values will be considered from the properties.
12
13 The year and month picker values are filled based on these values. The
14@@ -239,7 +238,14 @@
15 value for maximum.
16 */
17 property date minimum: Date.prototype.midnight.call(new Date())
18- /*! \internal */
19+ /*!
20+ \qmlproperty int maximum
21+
22+ The maximum date (inclusive) to be shown in the picker.
23+ Both year and month values will be considered from the properties.
24+
25+ See \l minimum for more details.
26+ */
27 property date maximum: {
28 var d = Date.prototype.midnight.call(new Date());
29 d.setFullYear(d.getFullYear() + 50);
30@@ -247,36 +253,32 @@
31 }
32
33 /*!
34- \qmlproperty int year
35- \readonly
36- \qmlproperty int month
37- \readonly
38- \qmlproperty int day
39- \readonly
40- \qmlproperty int week
41- \readonly
42- \qmlproperty int hours
43- \readonly
44- \qmlproperty int minutes
45- \readonly
46- \qmlproperty int seconds
47- \readonly
48- Properties declared for convenience, representing the \b year, \b month,
49- \b day, \b week as well as \b hours, \b minutes and \b seconds values of
50- the \l date property.
51+ For convenience, the \b year value of the \l date property.
52 */
53 readonly property int year: datePicker.date.getFullYear()
54- /*! \internal */
55+ /*!
56+ For convenience, the \b month value of the \l date property.
57+ */
58 readonly property int month: datePicker.date.getMonth()
59- /*! \internal */
60+ /*!
61+ For convenience, the \b day value of the \l date property.
62+ */
63 readonly property int day: datePicker.date.getDate()
64- /*! \internal */
65+ /*!
66+ For convenience, the \b week value of the \l date property.
67+ */
68 readonly property int week: datePicker.date.getWeek()
69- /*! \internal */
70+ /*!
71+ For convenience, the \b hours value of the \l date property.
72+ */
73 readonly property int hours: datePicker.date.getHours()
74- /*! \internal */
75+ /*!
76+ For convenience, the \b minutes value of the \l date property.
77+ */
78 readonly property int minutes: datePicker.date.getMinutes()
79- /*! \internal */
80+ /*!
81+ For convenience, the \b seconds value of the \l date property.
82+ */
83 readonly property int seconds: datePicker.date.getSeconds()
84
85 /*!
86
87=== modified file 'modules/Ubuntu/Components/Popups/Popover.qml'
88--- modules/Ubuntu/Components/Popups/Popover.qml 2014-01-08 10:48:29 +0000
89+++ modules/Ubuntu/Components/Popups/Popover.qml 2014-01-10 15:35:00 +0000
90@@ -100,11 +100,13 @@
91
92 /*!
93 \qmlproperty real contentWidth
94+ Use this property to override the default content width.
95+ */
96+ property alias contentWidth: foreground.width
97+ /*!
98 \qmlproperty real contentHeight
99- The properties can be used to alter the default content width and heights.
100- */
101- property alias contentWidth: foreground.width
102- /*! \internal */
103+ Use this property to override the default content height.
104+ */
105 property alias contentHeight: foreground.height
106
107 /*!
108
109=== modified file 'modules/Ubuntu/Components/TextField.qml'
110--- modules/Ubuntu/Components/TextField.qml 2014-01-08 10:48:29 +0000
111+++ modules/Ubuntu/Components/TextField.qml 2014-01-10 15:35:00 +0000
112@@ -539,13 +539,19 @@
113 horizontal alignment of TextField, use the read-only property effectiveHorizontalAlignment.
114
115 \qmlproperty enumeration horizontalAlignment
116+ */
117+ property alias horizontalAlignment: editor.horizontalAlignment
118+ /*!
119 \qmlproperty enumeration effectiveHorizontalAlignment
120+
121+ See \l horizontalAlignment for details.
122+ */
123+ property alias effectiveHorizontalAlignment: editor.effectiveHorizontalAlignment
124+ /*!
125 \qmlproperty enumeration verticalAlignment
126- */
127- property alias horizontalAlignment: editor.horizontalAlignment
128- /*! \internal */
129- property alias effectiveHorizontalAlignment: editor.effectiveHorizontalAlignment
130- /*! \internal */
131+
132+ See \l horizontalAlignment for details.
133+ */
134 property alias verticalAlignment: editor.verticalAlignment
135
136 /*!

Subscribers

People subscribed via source and target branches

to status/vote changes: