Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/JobDetails.qml
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 59 | PlasmaExtras.DescriptiveLabel { | |||
---|---|---|---|---|---|
65 | elide: Text.ElideMiddle | 65 | elide: Text.ElideMiddle | ||
66 | textFormat: Text.PlainText | 66 | textFormat: Text.PlainText | ||
67 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | 67 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||
68 | verticalAlignment: Text.AlignTop | 68 | verticalAlignment: Text.AlignTop | ||
69 | maximumLineCount: 5 | 69 | maximumLineCount: 5 | ||
70 | visible: text !== "" | 70 | visible: text !== "" | ||
71 | 71 | | |||
72 | // Only let the label grow, never shrink, to avoid repeatedly resizing the dialog when copying many files | 72 | // Only let the label grow, never shrink, to avoid repeatedly resizing the dialog when copying many files | ||
73 | onImplicitHeightChanged: { | 73 | function onImplicitHeightChanged() { | ||
74 | if (implicitHeight > Layout.preferredHeight) { | 74 | if (implicitHeight > Layout.preferredHeight) { | ||
75 | Layout.preferredHeight = implicitHeight; | 75 | Layout.preferredHeight = implicitHeight; | ||
76 | } | 76 | } | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | Component.onCompleted: bindText() | 79 | Component.onCompleted: bindText() | ||
80 | function bindText() { | 80 | function bindText() { | ||
81 | text = Qt.binding(function() { | 81 | text = Qt.binding(function() { | ||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |