System Tray: Add ScrollArea to hidden items view

Show vertical scrollbar when hidden items doesn't fit in popup.

BUG: 341165
FIXED-IN: 5.5.0
REVIEW: 125775
wilder-5.14
David Rosca 11 years ago
parent 867132ffc6
commit a2a9d41b33
  1. 22
      applets/systemtray/package/contents/ui/ExpandedRepresentation.qml

@ -76,13 +76,12 @@ KQuickControlsAddons.MouseEventListener {
}
}
ListView {
PlasmaExtras.ScrollArea {
id: hiddenView
objectName: "hiddenView"
clip: false
width: parent.width
interactive: (contentHeight > height)
width: parent.width
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
verticalScrollBarPolicy: root.expandedTask ? Qt.ScrollBarAlwaysOff : Qt.ScrollBarAsNeeded
anchors {
top: snHeading.bottom
@ -90,11 +89,7 @@ KQuickControlsAddons.MouseEventListener {
bottom: parent.bottom
left: parent.left
}
spacing: units.smallSpacing
model: hiddenTasksModel
delegate: TaskListDelegate {}
visible: {
// Normal system tray case; clicked on arrow
if (root.expandedTask == null) {
@ -113,6 +108,15 @@ KQuickControlsAddons.MouseEventListener {
return root.expandedTask.status == SystemTray.Task.Passive;
}
ListView {
clip: true
anchors.fill: parent
spacing: units.smallSpacing
model: hiddenTasksModel
delegate: TaskListDelegate {}
}
}
PlasmaCore.SvgItem {

Loading…
Cancel
Save