Skip to content

Commit f85421f

Browse files
committed
Set a11y name on notification icon
Fixes: #11678
1 parent 8955aca commit f85421f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/gui/notificationwidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void NotificationWidget::changeEvent(QEvent *e)
142142
case QEvent::StyleChange:
143143
case QEvent::PaletteChange:
144144
case QEvent::ThemeChange:
145-
_ui->_notifIcon->setPixmap(Resources::getCoreIcon(QStringLiteral("bell")).pixmap(_ui->_notifIcon->size()));
145+
_ui->_notificationIcon->setPixmap(Resources::getCoreIcon(QStringLiteral("bell")).pixmap(_ui->_notificationIcon->size()));
146146
break;
147147
default:
148148
break;

src/gui/notificationwidget.ui

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<item>
3030
<layout class="QHBoxLayout" name="horizontalLayout_3">
3131
<item>
32-
<widget class="QLabel" name="_notifIcon">
32+
<widget class="QLabel" name="_notificationIcon">
3333
<property name="sizePolicy">
3434
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
3535
<horstretch>0</horstretch>
@@ -48,11 +48,14 @@
4848
<height>48</height>
4949
</size>
5050
</property>
51+
<property name="accessibleName">
52+
<string>Notification icon</string>
53+
</property>
5154
<property name="text">
5255
<string/>
5356
</property>
5457
<property name="pixmap">
55-
<pixmap resource="../../client.qrc">:/client/resources/light/bell.svg</pixmap>
58+
<pixmap resource="../resources/client.qrc">:/client/resources/light/bell.svg</pixmap>
5659
</property>
5760
<property name="scaledContents">
5861
<bool>true</bool>
@@ -126,7 +129,7 @@
126129
</layout>
127130
</widget>
128131
<resources>
129-
<include location="../../client.qrc"/>
132+
<include location="../resources/client.qrc"/>
130133
</resources>
131134
<connections/>
132135
</ui>

0 commit comments

Comments
 (0)