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.height: 21
type: StatusFlatRoundButton.Type.Secondary
objectName: "activityCenterNotificationsButton"
// initializing the tooltip
tooltip.text: qsTr("Notifications")

View File

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