on xenial help sign in
Merge
9ce6b99Albert Astals
qml/Dash/Previews/PreviewTextSummary.qml+1−1
@@ -23,7 +23,7 @@ import "../../Components"
23 This widget shows text contained in widgetData["text"]
23 This widget shows text contained in widgetData["text"]
24 along with a title that comes from widgetData["title"].
24 along with a title that comes from widgetData["title"].
25
25
26− In case the text does not fit in 7 lines a See More / Less widget is also shown.
26+ In case the widget is collapsed it only shows 3 lines of text.
27 */
27 */
28
28
29PreviewWidget {
29PreviewWidget {
tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml−1
@@ -73,7 +73,6 @@ Rectangle {
73 }
73 }
74
74
75 function test_show_collapsed() {
75 function test_show_collapsed() {
76− // when it's more than textLabel.maximumCollapsedLineCount lines of text, show SeeMore component
77 verify(textLabel.lineCount > textLabel.maximumCollapsedLineCount)
76 verify(textLabel.lineCount > textLabel.maximumCollapsedLineCount)
78
77
79 previewTextSummary.expanded = false;
78 previewTextSummary.expanded = false;