Skip to content

Commit

Permalink
Remove unnecessary Notification models
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTrahearn-Qinetic committed Dec 19, 2024
1 parent 8b88eb6 commit 9ee8cec
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions data/Notifications.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,22 @@ QtObject {
// whether active or not
// all types
acknowledged: false
sortByType: true
sortByType: false
sortByTime: true
}
readonly property NotificationSortFilterProxyModel historicalModel: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
// whether active or not
// all types
acknowledged: true
active: false
sortByType: true
sortByType: false
sortByTime: true
}
readonly property NotificationSortFilterProxyModel activeAlarms: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
active: true
// whether acknowledged or not
type: VenusOS.Notification_Alarm
}
readonly property NotificationSortFilterProxyModel unacknowledgedAlarms: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
acknowledged: false
// whether active or not
type: VenusOS.Notification_Alarm
}
readonly property NotificationSortFilterProxyModel activeUnacknowledgedAlarms: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
active: true
acknowledged: false
type: VenusOS.Notification_Alarm
}
readonly property NotificationSortFilterProxyModel inactiveAcknowledgedAlarms: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
active: false
acknowledged: true
// only alarms
type: VenusOS.Notification_Alarm
}

Expand Down

0 comments on commit 9ee8cec

Please sign in to comment.