Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ConnectionItem.qml
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 75 | ColumnLayout { | |||
---|---|---|---|---|---|
78 | 78 | | |||
79 | PlasmaComponents.Label { | 79 | PlasmaComponents.Label { | ||
80 | id: connectionNameLabel | 80 | id: connectionNameLabel | ||
81 | Layout.fillWidth: true | 81 | Layout.fillWidth: true | ||
82 | height: paintedHeight | 82 | height: paintedHeight | ||
83 | elide: Text.ElideRight | 83 | elide: Text.ElideRight | ||
84 | font.weight: ConnectionState == PlasmaNM.Enums.Activated ? Font.DemiBold : Font.Normal | 84 | font.weight: ConnectionState == PlasmaNM.Enums.Activated ? Font.DemiBold : Font.Normal | ||
85 | font.italic: ConnectionState == PlasmaNM.Enums.Activating ? true : false | 85 | font.italic: ConnectionState == PlasmaNM.Enums.Activating ? true : false | ||
86 | text: ItemUniqueName | 86 | text: DisplayName | ||
87 | textFormat: Text.PlainText | 87 | textFormat: Text.StyledText | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | PlasmaComponents.Label { | 90 | PlasmaComponents.Label { | ||
91 | id: connectionStatusLabel | 91 | id: connectionStatusLabel | ||
92 | Layout.fillWidth: true | 92 | Layout.fillWidth: true | ||
93 | height: paintedHeight | 93 | height: paintedHeight | ||
94 | elide: Text.ElideRight | 94 | elide: Text.ElideRight | ||
95 | font.pointSize: theme.smallestFont.pointSize | 95 | font.pointSize: theme.smallestFont.pointSize | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 169 | if (!showQRComponent) { | |||
173 | } | 173 | } | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | showQRMenuItem.visible = (showQRComponent.status === Component.Ready); | 176 | showQRMenuItem.visible = (showQRComponent.status === Component.Ready); | ||
177 | } | 177 | } | ||
178 | } | 178 | } | ||
179 | 179 | | |||
180 | PlasmaComponents.MenuItem { | 180 | PlasmaComponents.MenuItem { | ||
181 | text: ItemUniqueName | 181 | text: DisplayName | ||
182 | enabled: false | 182 | enabled: false | ||
183 | } | 183 | } | ||
184 | PlasmaComponents.MenuItem { | 184 | PlasmaComponents.MenuItem { | ||
185 | text: stateChangeButton.text | 185 | text: stateChangeButton.text | ||
186 | icon: (ConnectionState == PlasmaNM.Enums.Deactivated) ? "network-connect" : "network-disconnect" | 186 | icon: (ConnectionState == PlasmaNM.Enums.Deactivated) ? "network-connect" : "network-disconnect" | ||
187 | onClicked: changeState() | 187 | onClicked: changeState() | ||
188 | } | 188 | } | ||
189 | PlasmaComponents.MenuItem { | 189 | PlasmaComponents.MenuItem { | ||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |