D24808: [mobile/wifi] Group networks by connection state

Jan Grulich noreply at phabricator.kde.org
Sun Oct 20 18:30:35 BST 2019


jgrulich added inline comments.

INLINE COMMENTS

> main.qml:89
>  
> -        header: Kirigami.ListSectionHeader {
> -            text: mobileProxyModel.showSavedMode ? i18n("Saved networks") : i18n("Available networks")
> +        section.property: "ConnectionState"
> +        section.delegate: Kirigami.ListSectionHeader {

You can use  "Section" property from the model, which already contains either "Active connections" or "Available connections".

We use it in the applet as well:

  section.property: showSections ? "Section" : ""
  section.delegate: Header { text: section }

REPOSITORY
  R116 Plasma Network Management Applet

REVISION DETAIL
  https://phabricator.kde.org/D24808

To: nicolasfella, jgrulich, #plasma, #plasma:_mobile
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191020/84664386/attachment.html>


More information about the Plasma-devel mailing list