Robin Getz
bdf0fa0202
valuedialz: Fix signed/unsigned conversion when editing negative values
...
Fix a signed/unsigned arithmetic issue in ValueDialZ::keyPressEvent()
reported by cppcheck.
The digit editing code used quint64 intermediates together with a signed
sign value:
int sign = m_value < 0 ? -1 : 1;
setValue(sign * v);
When editing negative values, the signed -1 was converted to an unsigned
value before multiplication, causing the result to wrap instead of
producing a negative value.
Use qint64 intermediates for the digit manipulation and apply the existing
sign explicitly when updating the value. This preserves correct behavior
when editing negative values and avoids the unintended unsigned conversion.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
4 months ago
f4exb
b84eea7dc9
Rewriting of copyright notices for sdrgui. Fixes #1893
3 years ago
srcejon
1affacbb25
Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly
3 years ago
Jon Beniston
7ae1951d12
Add accessibility interface for ValueDial widgets, so they work with screen readers. For #1672
4 years ago
Jon Beniston
e5c887646a
Allow Android virtual keyboard to change sign in ValueDialZ widget
4 years ago
Jon Beniston
2cb2a8d555
Update sdrbase and sdrgui to support Qt5 and Qt6
4 years ago
Jiří Pinkava
a9f1c072d9
Replace deprecated QWheelEvent.pos by position
4 years ago
Jiří Pinkava
c29d3b6433
Replace deprecated QWheelEvent.delta by angleDelta
4 years ago
Jon Beniston
d17403f8e9
Darken ValueDials when disabled
4 years ago
Jon Beniston
33c19b6fe0
Value dial: Check for completed animation before using m_value
4 years ago
f4exb
8f48e987fa
Massive UI revamping (v7): correct ValueDialZ incorrectly zeroing on set value range
5 years ago
f4exb
22381c5dbc
ValueDialZ: fix find exponent. Fixes #1158
5 years ago
f4exb
22604244a3
ValueDialZ: fixed compilation warning. Fixes #1155
5 years ago
f4exb
5df47b405a
ValueDialZ: added decimal point option
5 years ago
f4exb
3641eb7295
ValueDialZ: when setting range fix zero display initial value
5 years ago
Jon Beniston
e248d8144c
valuedialz: Check range against m_valueNew rather than m_value, as that holds the most recently set value
5 years ago
f4exb
f693ecc8cc
ValueDialZ: moved emit changed inside setValue method. Complements #1004
5 years ago
f4exb
40a1c854dd
ValueDialZ: removed set value to 0 code if value is in range. Fixes #1004
5 years ago
f4exb
379096cbdd
Migrate code to Qt 5.14.2
6 years ago
Vort
73b221f055
ValueDial(Z): add virtual keyboard support
6 years ago
f4exb
8488161e6d
Fixed incomplete copyright headers (4): sdrgui
8 years ago
f4exb
f5357e9917
PVS-Studio Analysis corrections for less serious issues
8 years ago
f4exb
4bb63bbf1b
Fixed keyboard input for negative values on realtive integer value dials (issue #168 )
9 years ago
f4exb
2b846f5d28
PVS-Studio static analysis corrections (2) issue #137
9 years ago
fire
30111bdca0
fix QtWheelEvent propagation
...
as described here
http://www.setnode.com/blog/mouse-wheel-events-event-filters-and-qscrollarea/
9 years ago
f4exb
382a825614
Fixed value dial typing in values problems. Issue #97
9 years ago
f4exb
641dbf9744
Value dials: use the locale group separator for thousands
9 years ago
f4exb
fa77ca3fb6
Code re-organization in two libraries sdrbase and sdrgui in view of core / GUI split
9 years ago
f4exb
84c6488310
ValueDialZ: fixed display of int64 larger than max of int32 in absolute value
9 years ago
f4exb
160307fe23
ValueDialZ: added missing inter-wheel gap
10 years ago
f4exb
3a3d8e3dcb
activated compiler warnings
10 years ago
f4exb
d842b44c28
Value dials: implement Ctl to shift digits by 2. Updated documentation
10 years ago
f4exb
58fb967ca7
ValueDialZ: use sign wheel to reverse sign using keys
10 years ago
f4exb
a0a8548c7b
ValueDialZ: use sign wheel to reverse sign
10 years ago
f4exb
b0a765d67a
ValueDialZ: fixed digit selection overlay
10 years ago
f4exb
e317f3762c
ValueDialZ: new value dial that handles negative values. Application in TCPsrc plugin
10 years ago