@@ -28,9 +28,6 @@ import "../../Components"
29PreviewWidget {
29PreviewWidget {
32− readonly property int __maximumCollapsedLineCount: 7
34 implicitHeight: titleLabel.visible ? titleLabel.height + textLabel.height : textLabel.height
31 implicitHeight: titleLabel.visible ? titleLabel.height + textLabel.height : textLabel.height
@@ -52,12 +49,15 @@ PreviewWidget {
53 id: textLabel
50 id: textLabel
54 objectName: "textLabel"
51 objectName: "textLabel"
53+ readonly property int maximumCollapsedLineCount: 7
56 left: parent.left
56 left: parent.left
57 right: parent.right
57 right: parent.right
58 top: titleLabel.visible ? titleLabel.bottom : parent.top
58 top: titleLabel.visible ? titleLabel.bottom : parent.top
60− height: (!seeMore.visible || seeMore.more) ? contentHeight : contentHeight / lineCount * (__maximumCollapsedLineCount - 2)
60+ height: (!seeMore.visible || seeMore.more) ? contentHeight : contentHeight / lineCount * (maximumCollapsedLineCount - 2)
61 clip: true
61 clip: true
62 fontSize: "medium"
62 fontSize: "medium"
63 color: Theme.palette.selected.backgroundText
63 color: Theme.palette.selected.backgroundText
@@ -79,6 +79,6 @@ PreviewWidget {
79 top: textLabel.bottom
79 top: textLabel.bottom
80 topMargin: units.gu(1)
80 topMargin: units.gu(1)
82− visible: textLabel.lineCount > __maximumCollapsedLineCount
82+ visible: textLabel.lineCount > textLabel.maximumCollapsedLineCount