diff options
| author | Axel Spoerl <axel.spoerl@qt.io> | 2023-03-13 09:16:06 +0100 |
|---|---|---|
| committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-03-15 14:32:35 +0100 |
| commit | 8b84374892512faa43e5deeeef22ca558ac5543a (patch) | |
| tree | f0107b4e0b4d44877d23f31a73052703561dcaed /src/corelib/io/qresource.cpp | |
| parent | f4d897f04eee6386382096945f872ae9f306a5de (diff) | |
emit QAbstractSlider::valueChanged() only on value change
The signal has been emitted also, when the slider position has changed
without a value change (e.g. on QWidget::show() or on resizing).
This patch stops emitting the signal without a value change.
It adds a verification to tst_QAbstractSlider::setValue(), that
valueChanged is not emitted on a no-op value change.
As a drive-by, the patch removes an unnecessary assignment and
changes signal spy constructions to PTMF syntax.
Pick-to: 6.5 6.4 6.2
Task-number: QTBUG-25365
Change-Id: I9932e45d4e680aa53422ca75aa42a16306213a38
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/corelib/io/qresource.cpp')
0 files changed, 0 insertions, 0 deletions
