Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/private/EntryCommentDelegate.qml
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | 147 | QtLayouts.RowLayout { | |||
---|---|---|---|---|---|
148 | QtLayouts.Layout.fillWidth: true | 148 | QtLayouts.Layout.fillWidth: true | ||
149 | Item { | 149 | Item { | ||
150 | QtLayouts.Layout.fillWidth: true | 150 | QtLayouts.Layout.fillWidth: true | ||
151 | } | 151 | } | ||
152 | Kirigami.UrlButton { | 152 | Kirigami.UrlButton { | ||
153 | id: authorLabel | 153 | id: authorLabel | ||
154 | visible: (url !== "") | 154 | visible: (url !== "") | ||
155 | url: (component.commentAuthor.homepage === "") ? component.commentAuthor.profilepage : component.commentAuthor.homepage | 155 | url: (component.commentAuthor.homepage === "") ? component.commentAuthor.profilepage : component.commentAuthor.homepage | ||
156 | text: (component.author === component.entryAuthorId) ? i18nc("The author label in case the comment was written by the author of the content entry the comment is attached to", "%1 <i>(author)</i>").arg(component.commentAuthor.name) : component.commentAuthor.name | 156 | text: (component.author === component.entryAuthorId) ? i18nc("The author label in case the comment was written by the author of the content entry the comment is attached to", "%1 <i>(author)</i>", component.commentAuthor.name) : component.commentAuthor.name | ||
157 | } | 157 | } | ||
158 | QtControls.Label { | 158 | QtControls.Label { | ||
159 | visible: !authorLabel.visible | 159 | visible: !authorLabel.visible | ||
160 | text: authorLabel.text | 160 | text: authorLabel.text | ||
161 | } | 161 | } | ||
162 | Image { | 162 | Image { | ||
163 | id: authorIcon | 163 | id: authorIcon | ||
164 | QtLayouts.Layout.maximumWidth: height | 164 | QtLayouts.Layout.maximumWidth: height | ||
Show All 25 Lines |