18 import Ubuntu.Components 0.1
19 import
"../../Components"
31 implicitHeight: childrenRect.height
35 objectName:
"titleLabel"
40 height: visible ? implicitHeight : 0
42 color: root.
scopeStyle ? root.scopeStyle.foreground :
"grey"
45 text: widgetData[
"title"] ||
""
51 objectName:
"textLabel"
53 readonly
property int maximumCollapsedLineCount: 7
58 top: titleLabel.visible ? titleLabel.bottom : parent.top
60 height: (!seeMore.visible || seeMore.more) ? contentHeight : contentHeight / lineCount * (maximumCollapsedLineCount - 2)
64 color: root.scopeStyle ? root.scopeStyle.foreground :
"grey"
66 text: widgetData[
"text"]
70 UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
81 topMargin: visible ? units.gu(1) : 0
83 height: visible ? implicitHeight : 0
84 visible: textLabel.lineCount > textLabel.maximumCollapsedLineCount