Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/contents/ui/Full.qml
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 119 | anchors { | |||
---|---|---|---|---|---|
122 | right: parent.right | 122 | right: parent.right | ||
123 | top: statusbar.bottom | 123 | top: statusbar.bottom | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | PlasmaExtras.ScrollArea { | 126 | PlasmaExtras.ScrollArea { | ||
127 | id: updatesScrollArea | 127 | id: updatesScrollArea | ||
128 | Layout.fillWidth: true | 128 | Layout.fillWidth: true | ||
129 | Layout.fillHeight: true | 129 | Layout.fillHeight: true | ||
130 | visible: PkUpdates.count && !PkUpdates.isActive | 130 | visible: PkUpdates.count && PkUpdates.isNetworkOnline && !PkUpdates.isActive | ||
131 | 131 | | |||
132 | ListView { | 132 | ListView { | ||
133 | id: updatesView | 133 | id: updatesView | ||
134 | clip: true | 134 | clip: true | ||
135 | model: PlasmaCore.SortFilterModel { | 135 | model: PlasmaCore.SortFilterModel { | ||
136 | sourceModel: updatesModel | 136 | sourceModel: updatesModel | ||
137 | filterRole: "name" | 137 | filterRole: "name" | ||
138 | } | 138 | } | ||
Show All 16 Lines | 154 | } else { | |||
155 | fullRepresentation.anySelected = checkAnySelected() | 155 | fullRepresentation.anySelected = checkAnySelected() | ||
156 | } | 156 | } | ||
157 | } | 157 | } | ||
158 | } | 158 | } | ||
159 | } | 159 | } | ||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | RowLayout { | 162 | RowLayout { | ||
163 | visible: PkUpdates.count && !PkUpdates.isActive | 163 | visible: PkUpdates.count && PkUpdates.isNetworkOnline && !PkUpdates.isActive | ||
164 | PlasmaComponents.CheckBox { | 164 | PlasmaComponents.CheckBox { | ||
165 | id: chkSelectAll | 165 | id: chkSelectAll | ||
166 | anchors { | 166 | anchors { | ||
167 | left: parent.left | 167 | left: parent.left | ||
168 | leftMargin: Math.round(units.gridUnit / 3) | 168 | leftMargin: Math.round(units.gridUnit / 3) | ||
169 | } | 169 | } | ||
170 | checkedState: fullRepresentation.anySelected ? (fullRepresentation.allSelected ? Qt.Checked : Qt.PartiallyChecked) : Qt.Unchecked | 170 | checkedState: fullRepresentation.anySelected ? (fullRepresentation.allSelected ? Qt.Checked : Qt.PartiallyChecked) : Qt.Unchecked | ||
171 | partiallyCheckedEnabled: true | 171 | partiallyCheckedEnabled: true | ||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |