Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/PopupDialog.qml
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 89 | PlasmaExtras.Heading { | |||
---|---|---|---|---|---|
97 | visible: opacity >= 0.6 && connectionView.count === 0 | 97 | visible: opacity >= 0.6 && connectionView.count === 0 | ||
98 | Behavior on opacity { NumberAnimation { duration: 5000 } } | 98 | Behavior on opacity { NumberAnimation { duration: 5000 } } | ||
99 | text: i18n("No available connections") | 99 | text: i18n("No available connections") | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | ListView { | 102 | ListView { | ||
103 | id: connectionView | 103 | id: connectionView | ||
104 | 104 | | |||
105 | property bool availableConnectionsVisible: false | | |||
106 | property int currentVisibleButtonIndex: -1 | 105 | property int currentVisibleButtonIndex: -1 | ||
106 | property bool showSeparator: false | ||||
107 | 107 | | |||
108 | spacing: units.smallSpacing | ||||
108 | anchors.fill: parent | 109 | anchors.fill: parent | ||
109 | clip: true | 110 | clip: true | ||
110 | model: appletProxyModel | 111 | model: appletProxyModel | ||
111 | currentIndex: -1 | 112 | currentIndex: -1 | ||
112 | boundsBehavior: Flickable.StopAtBounds | 113 | boundsBehavior: Flickable.StopAtBounds | ||
113 | section.property: showSections ? "Section" : "" | 114 | section.property: showSeparator ? "Section" : "" | ||
114 | section.delegate: Header { text: section } | 115 | section.delegate: ListItem { separator: true } | ||
115 | delegate: ConnectionItem { } | 116 | delegate: ConnectionItem { } | ||
116 | } | 117 | } | ||
117 | } | 118 | } | ||
118 | } | 119 | } | ||
119 | 120 | | |||
120 | Connections { | 121 | Connections { | ||
121 | target: plasmoid | 122 | target: plasmoid | ||
122 | onExpandedChanged: { | 123 | onExpandedChanged: { | ||
Show All 12 Lines |