@@ -30,15 +30,21 @@ Rectangle {
30 property string longText2: "This is a very very very long text. 1 This is a very very very long text. 2 This is a very very very long text. 3 This is a very very very long text. 4 This is a very very very long text. 5 This is a very very very long text. 6 This is a very very very long text. 7 This is a very very very long text. 8 This is a very very very long text. 9 This is a very very very long text. 10 This is a very very very long text. 11 This is a very very very long text."
30 property string longText2: "This is a very very very long text. 1 This is a very very very long text. 2 This is a very very very long text. 3 This is a very very very long text. 4 This is a very very very long text. 5 This is a very very very long text. 6 This is a very very very long text. 7 This is a very very very long text. 8 This is a very very very long text. 9 This is a very very very long text. 10 This is a very very very long text. 11 This is a very very very long text."
31 property string shortText: "This is a short text :)"
31 property string shortText: "This is a short text :)"
33 property var widgetData: {
37 property var widgetData: {
34 "title": "Title here",
38 "title": "Title here",
35 "collapsed-widgets": 2,
39 "collapsed-widgets": 2,
36− "widgets": [
40+ "widgets": widgetsModel
43+ Component.onCompleted: {
37− { "type": "text", "widgetId" : "text1", "properties" : { "text": longText } },
44+ widgetsModel.append({"type": "text", "widgetId": "text1", "properties": { "text": longText }});
38− { "type": "text", "widgetId" : "text2", "properties" : { "text": longText2 } },
45+ widgetsModel.append({"type": "text", "widgetId": "text2", "properties": { "text": longText2 }});
39− { "type": "text", "widgetId" : "text3", "properties" : { "text": shortText } },
46+ widgetsModel.append({"type": "text", "widgetId": "text3", "properties": { "text": shortText }});
40− { "type": "text", "widgetId" : "text4", "properties" : { "text": longText } }
47+ widgetsModel.append({"type": "text", "widgetId": "text4", "properties": { "text": longText }});
44 PreviewExpandable {
50 PreviewExpandable {