Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderViewLayer.qml
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 27 | Item { | |||
---|---|---|---|---|---|
74 | PlasmaCore.Svg { | 74 | PlasmaCore.Svg { | ||
75 | id: actionOverlays | 75 | id: actionOverlays | ||
76 | 76 | | |||
77 | imagePath: "widgets/action-overlays" | 77 | imagePath: "widgets/action-overlays" | ||
78 | multipleImages: true | 78 | multipleImages: true | ||
79 | size: "16x16" | 79 | size: "16x16" | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | Binding { | ||||
83 | target: plasmoid | ||||
84 | property: "title" | ||||
85 | value: labelGenerator.displayLabel | ||||
broulik: > Except when we're a containment.
Isn't a `when: !isContainment` nicer, then? (Just asking… | |||||
86 | } | ||||
87 | | ||||
88 | Folder.LabelGenerator { | ||||
89 | id: labelGenerator | ||||
90 | | ||||
91 | folderModel: folderView.model | ||||
92 | rtl: (Qt.application.layoutDirection == Qt.RightToLeft) | ||||
93 | labelMode: plasmoid.configuration.labelMode || (isContainment ? 0 : 1) | ||||
94 | labelText: plasmoid.configuration.labelText | ||||
95 | } | ||||
96 | | ||||
82 | Folder.ViewPropertiesMenu { | 97 | Folder.ViewPropertiesMenu { | ||
83 | id: viewPropertiesMenu | 98 | id: viewPropertiesMenu | ||
84 | 99 | | |||
85 | showLayoutActions: !isPopup | 100 | showLayoutActions: !isPopup | ||
86 | showLockAction: isContainment | 101 | showLockAction: isContainment | ||
87 | showIconSizeActions: !root.useListViewMode | 102 | showIconSizeActions: !root.useListViewMode | ||
88 | 103 | | |||
89 | onArrangementChanged: { | 104 | onArrangementChanged: { | ||
▲ Show 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 304 | PlasmaComponents.Label { | |||
296 | } | 311 | } | ||
297 | height: parent.height | 312 | height: parent.height | ||
298 | 313 | | |||
299 | horizontalAlignment: Text.AlignHCenter | 314 | horizontalAlignment: Text.AlignHCenter | ||
300 | verticalAlignment: Text.AlignTop | 315 | verticalAlignment: Text.AlignTop | ||
301 | elide: Text.ElideMiddle | 316 | elide: Text.ElideMiddle | ||
302 | text: labelGenerator.displayLabel | 317 | text: labelGenerator.displayLabel | ||
303 | font.underline: labelMouseArea.containsMouse | 318 | font.underline: labelMouseArea.containsMouse | ||
304 | | ||||
305 | Binding { | | |||
306 | target: plasmoid | | |||
307 | property: "title" | | |||
308 | value: labelGenerator.displayLabel | | |||
309 | } | | |||
310 | | ||||
311 | Folder.LabelGenerator { | | |||
312 | id: labelGenerator | | |||
313 | | ||||
314 | folderModel: folderView.model | | |||
315 | rtl: (Qt.application.layoutDirection == Qt.RightToLeft) | | |||
316 | labelMode: plasmoid.configuration.labelMode | | |||
317 | labelText: plasmoid.configuration.labelText | | |||
318 | } | | |||
319 | } | 319 | } | ||
320 | 320 | | |||
321 | MouseArea { | 321 | MouseArea { | ||
322 | id: labelMouseArea | 322 | id: labelMouseArea | ||
323 | anchors { | 323 | anchors { | ||
324 | top: text.top | 324 | top: text.top | ||
325 | horizontalCenter: text.horizontalCenter | 325 | horizontalCenter: text.horizontalCenter | ||
326 | } | 326 | } | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |
Isn't a when: !isContainment nicer, then? (Just asking, no need to change it)