Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 306 | PlasmaComponents.Label { | |||
---|---|---|---|---|---|
310 | 310 | | |||
311 | states: [ | 311 | states: [ | ||
312 | State { // icon view | 312 | State { // icon view | ||
313 | when: !root.useListViewMode | 313 | when: !root.useListViewMode | ||
314 | 314 | | |||
315 | AnchorChanges { | 315 | AnchorChanges { | ||
316 | target: label | 316 | target: label | ||
317 | anchors.top: icon.bottom | 317 | anchors.top: icon.bottom | ||
318 | anchors.horizontalCenter: parent.horizontalCenter | 318 | anchors.left: parent.left | ||
319 | anchors.right: parent.right | ||||
319 | } | 320 | } | ||
320 | PropertyChanges { | 321 | PropertyChanges { | ||
321 | target: label | 322 | target: label | ||
322 | anchors.topMargin: units.smallSpacing | 323 | anchors.topMargin: units.smallSpacing | ||
323 | width: Math.round(Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing)) | 324 | anchors.leftMargin: units.smallSpacing / 2 | ||
325 | anchors.rightMargin: units.smallSpacing / 2 | ||||
324 | maximumLineCount: plasmoid.configuration.textLines | 326 | maximumLineCount: plasmoid.configuration.textLines | ||
325 | horizontalAlignment: Text.AlignHCenter | 327 | horizontalAlignment: Text.AlignHCenter | ||
326 | } | 328 | } | ||
327 | }, | 329 | }, | ||
328 | State { // list view | 330 | State { // list view | ||
329 | when: root.useListViewMode | 331 | when: root.useListViewMode | ||
330 | 332 | | |||
331 | AnchorChanges { | 333 | AnchorChanges { | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |