Commit 8c8b9d2f authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: give traffic graph a description

parent 8e745fbf
Pipeline #208642 passed with stage
in 3 minutes and 35 seconds
......@@ -154,15 +154,26 @@ PlasmaExtras.ExpandableListItem {
}
}
TrafficMonitor {
FocusScope {
anchors {
left: parent.left
right: parent.right
}
downloadSpeed: rxBytes
uploadSpeed: txBytes
height: trafficMonitorGraph.implicitHeight
visible: detailsTabBar.currentIndex == 0
activeFocusOnTab: true
Accessible.description: i18nc("@info:tooltip", "Current download speed is %1 kibibytes per second; current upload speed is %2 kibibytes per second", Math.round(rxBytes / 1024), Math.round(txBytes / 1024))
TrafficMonitor {
id: trafficMonitorGraph
width: parent.width
downloadSpeed: rxBytes
uploadSpeed: txBytes
}
}
}
}
......
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