Warning, /plasma/plasma-desktop/applets/taskmanager/package/contents/ui/TaskProgressOverlay.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2016 Kai Uwe Broulik <kde@privat.broulik.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import QtQuick.Templates as T
0009 
0010 import org.kde.ksvg as KSvg
0011 import org.kde.plasma.plasmoid
0012 
0013 import "code/tools.js" as TaskTools
0014 
0015 T.ProgressBar {
0016     id: control
0017 
0018     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0019                             implicitContentWidth + leftPadding + rightPadding)
0020     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0021                              implicitContentHeight + topPadding + bottomPadding)
0022 
0023     hoverEnabled: false
0024     padding: 0
0025 
0026     from: 0
0027     to: 100
0028     value: task.smartLauncherItem.progress
0029 
0030     contentItem: Item {
0031         clip: true
0032 
0033         KSvg.FrameSvgItem {
0034             id: progressFrame
0035 
0036             anchors.left: parent.left
0037             width: parent.width * control.position
0038             height: parent.height
0039 
0040             imagePath: "widgets/tasks"
0041             prefix: TaskTools.taskPrefix("progress", Plasmoid.location).concat(TaskTools.taskPrefix("hover", Plasmoid.location))
0042         }
0043     }
0044 
0045     background: null
0046 }