Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
plasma6-nm
2002-traffic-info.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2002-traffic-info.patch of Package plasma6-nm
diff --git a/applet/contents/ui/ConnectionItem.qml b/applet/contents/ui/ConnectionItem.qml index 10d4091ae46eea7bf96ee5496e80e06c4d2c83d3..ec7c0526bb066f215f915e2fb6e0ba90e9500c90 100644 --- a/applet/contents/ui/ConnectionItem.qml +++ b/applet/contents/ui/ConnectionItem.qml @@ -62,23 +62,6 @@ PlasmaExtras.ExpandableListItem { } showDefaultActionButtonWhenBusy: true - Keys.onPressed: event => { - if (!connectionItem.expanded) { - event.accepted = false; - return; - } - - if ((customExpandedViewContent === detailsComponent) && showSpeed) { - if (event.key === Qt.Key_Right) { - customExpandedViewContentItem.detailsTabBar.currentIndex = 1; - event.accepted = true; - } else if (event.key === Qt.Key_Left) { - customExpandedViewContentItem.detailsTabBar.currentIndex = 0; - event.accepted = true; - } - } - } - contextualActions: [ Action { enabled: Uuid && Type === PlasmaNM.Enums.Wireless && passwordIsStatic @@ -100,84 +83,11 @@ PlasmaExtras.ExpandableListItem { Component { id: detailsComponent - Column { - spacing: Kirigami.Units.smallSpacing - property Item detailsTabBar: detailsTabBar - - PlasmaComponents3.TabBar { - id: detailsTabBar - - anchors { - left: parent.left - right: parent.right - } - height: visible ? implicitHeight : 0 - implicitHeight: contentHeight - position: PlasmaComponents3.TabBar.Header - visible: showSpeed - - onCurrentIndexChanged: { - // Only if there are the two tabs. - if (showSpeed) { - Plasmoid.configuration.currentDetailsTab = ["details", "speed"][currentIndex]; - } - } - - onVisibleChanged: { - if (!visible) { - currentIndex = 0; - } - } - - PlasmaComponents3.TabButton { - id: detailsTabButton - text: i18n("Details") - } - - PlasmaComponents3.TabButton { - id: speedTabButton - text: i18n("Speed") - } - - Component.onCompleted: { - if (showSpeed && Plasmoid.configuration.currentDetailsTab === "speed") { - currentIndex = 1; - } - } - } - - DetailsText { - id: detailsTextColumn - - width: parent.width - visible: detailsTabBar.currentIndex === 0 - - activeFocusOnTab: details.length > 0 - details: ConnectionDetails - - Accessible.description: details.join(" ") - } - - FocusScope { - anchors { - left: parent.left - right: parent.right - } - height: trafficMonitorGraph.implicitHeight - visible: detailsTabBar.currentIndex === 1 - - 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(rxSpeed / 1024), Math.round(txSpeed / 1024)) - - TrafficMonitor { - id: trafficMonitorGraph - width: parent.width - downloadSpeed: rxSpeed - uploadSpeed: txSpeed - } - } + DetailsText { + activeFocusOnTab: details.length > 0 + details: ConnectionDetails + Accessible.description: details.join(" ") } } diff --git a/applet/contents/ui/ConnectionListPage.qml b/applet/contents/ui/ConnectionListPage.qml index 19b4e62f1b919f63535c52448b3fe5ab31f2e1b3..e39bd0e3a3a7b878f18b5170c1c6c54f0c741641 100644 --- a/applet/contents/ui/ConnectionListPage.qml +++ b/applet/contents/ui/ConnectionListPage.qml @@ -85,8 +85,8 @@ ColumnLayout { separator: true } highlight: PlasmaExtras.Highlight { } - highlightMoveDuration: 0 - highlightResizeDuration: 0 + highlightMoveDuration: Kirigami.Units.shortDuration + highlightResizeDuration: Kirigami.Units.shortDuration delegate: ConnectionItem { width: connectionView.width - Kirigami.Units.smallSpacing * 4 } diff --git a/applet/contents/ui/DetailsText.qml b/applet/contents/ui/DetailsText.qml index ca745833ca00531a805bfa11cd7e5bcf3ff6e6f2..b0bb107e8613dc71f8553b20109206d4607c0099 100644 --- a/applet/contents/ui/DetailsText.qml +++ b/applet/contents/ui/DetailsText.qml @@ -13,7 +13,7 @@ import org.kde.plasma.extras as PlasmaExtras import org.kde.plasma.components as PlasmaComponents3 MouseArea { - height: detailsGrid.implicitHeight + implicitHeight: detailsGrid.implicitHeight property var details: []
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor