Commit 2275a477 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/taskmanager] Use a PlasmaComponents3 ScrollView for tooltip

This gives us a functional scrollbar for free.

BUG: 396442
FIXED-IN: 5.22
parent 0515d1ae
......@@ -26,12 +26,12 @@ import QtGraphicalEffects 1.0
import QtQml.Models 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
import org.kde.taskmanager 0.1 as TaskManager
PlasmaExtras.ScrollArea {
PlasmaComponents3.ScrollView {
id: toolTipDelegate
property Item parentTask
......@@ -72,9 +72,6 @@ PlasmaExtras.ScrollArea {
property int textWidth: theme.mSize(theme.defaultFont).width * 20
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
Component.onCompleted: {
flickableItem.interactive = Qt.binding(function() {
return isVerticalPanel ? contentItem.height > viewport.height : contentItem.width > viewport.width
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment