chore: object names for activity center elements added (#14029)

This commit is contained in:
Valentina1133 2024-03-20 17:22:57 +07:00 committed by GitHub
parent 1d9c136bf8
commit a48b2532ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ StatusFlatRoundButton {
icon.name: "notification" icon.name: "notification"
icon.height: 21 icon.height: 21
type: StatusFlatRoundButton.Type.Secondary type: StatusFlatRoundButton.Type.Secondary
objectName: "activityCenterNotificationsButton"
// initializing the tooltip // initializing the tooltip
tooltip.text: qsTr("Notifications") tooltip.text: qsTr("Notifications")

View File

@ -60,6 +60,7 @@ Item {
{ text: qsTr("System"), group: ActivityCenterStore.ActivityCenterGroup.System, visible: false, enabled: true } ] { text: qsTr("System"), group: ActivityCenterStore.ActivityCenterGroup.System, visible: false, enabled: true } ]
StatusFlatButton { StatusFlatButton {
objectName: "activityCenterGroupButton"
enabled: modelData.enabled enabled: modelData.enabled
visible: modelData.visible visible: modelData.visible
text: modelData.text text: modelData.text
@ -75,6 +76,7 @@ Item {
StatusFlatRoundButton { StatusFlatRoundButton {
id: markAllReadBtn id: markAllReadBtn
objectName: "markAllReadButton"
enabled: root.unreadNotificationsCount > 0 enabled: root.unreadNotificationsCount > 0
icon.name: "double-checkmark" icon.name: "double-checkmark"
onClicked: root.markAllReadClicked() onClicked: root.markAllReadClicked()
@ -87,6 +89,7 @@ Item {
StatusFlatRoundButton { StatusFlatRoundButton {
id: hideReadNotificationsBtn id: hideReadNotificationsBtn
objectName: "hideReadNotificationsButton"
icon.name: root.hideReadNotifications ? "hide" : "show" icon.name: root.hideReadNotifications ? "hide" : "show"
onClicked: root.showHideReadNotifications(!root.hideReadNotifications) onClicked: root.showHideReadNotifications(!root.hideReadNotifications)