summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qabstractslider.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-03-07 13:39:57 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-08 07:28:21 +0100
commitb55ed97e7967fca675fa43a8c0cd7445bbbbb493 (patch)
treec06ab7f99fddbfffe0bfd858ddfc9859dc1f9bd9 /src/widgets/widgets/qabstractslider.cpp
parent316b050324042f03da8e31fde76e1fd8e16a4697 (diff)
Call updateAccessibility with the right index.
In Qt 4 index 0 was the widget itself. With the cleanup of child index this now changed. The default constructor uses -1 as parameter to signify that the widget is the cause, not a child. Change-Id: I329a1cc91bf2d1d1d8534739acbddfe107f40364 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qabstractslider.cpp')
-rw-r--r--src/widgets/widgets/qabstractslider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qabstractslider.cpp b/src/widgets/widgets/qabstractslider.cpp
index 6aff2e9077..b0216e5277 100644
--- a/src/widgets/widgets/qabstractslider.cpp
+++ b/src/widgets/widgets/qabstractslider.cpp
@@ -538,7 +538,7 @@ void QAbstractSlider::setValue(int value)
emit sliderMoved((d->position = value));
}
#ifndef QT_NO_ACCESSIBILITY
- QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::ValueChanged, this, 0));
+ QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::ValueChanged, this));
#endif
sliderChange(SliderValueChange);
emit valueChanged(value);