Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/main.qml
Show All 21 Lines | |||||
22 | import org.kde.plasma.plasmoid 2.0 | 22 | import org.kde.plasma.plasmoid 2.0 | ||
23 | import org.kde.plasma.networkmanagement 0.2 as PlasmaNM | 23 | import org.kde.plasma.networkmanagement 0.2 as PlasmaNM | ||
24 | import org.kde.kquickcontrolsaddons 2.0 | 24 | import org.kde.kquickcontrolsaddons 2.0 | ||
25 | import QtQuick.Layouts 1.1 | 25 | import QtQuick.Layouts 1.1 | ||
26 | 26 | | |||
27 | Item { | 27 | Item { | ||
28 | id: mainWindow | 28 | id: mainWindow | ||
29 | 29 | | |||
30 | property bool showSections: true | | |||
31 | readonly property string kcm: "kcm_networkmanagement.desktop" | 30 | readonly property string kcm: "kcm_networkmanagement.desktop" | ||
32 | readonly property bool kcmAuthorized: KCMShell.authorize(kcm).length == 1 | 31 | readonly property bool kcmAuthorized: KCMShell.authorize(kcm).length == 1 | ||
33 | 32 | | |||
34 | Plasmoid.toolTipMainText: i18n("Networks") | 33 | Plasmoid.toolTipMainText: i18n("Networks") | ||
35 | Plasmoid.toolTipSubText: networkStatus.activeConnections | 34 | Plasmoid.toolTipSubText: networkStatus.activeConnections | ||
36 | Plasmoid.icon: connectionIconProvider.connectionTooltipIcon | 35 | Plasmoid.icon: connectionIconProvider.connectionTooltipIcon | ||
37 | Plasmoid.switchWidth: units.gridUnit * 10 | 36 | Plasmoid.switchWidth: units.gridUnit * 10 | ||
38 | Plasmoid.switchHeight: units.gridUnit * 10 | 37 | Plasmoid.switchHeight: units.gridUnit * 10 | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |