Actions
Bug #2751
closed
SR
RS
WDoubleSpinBox setting decimals to zero show decimal point
Bug #2751:
WDoubleSpinBox setting decimals to zero show decimal point
Start date:
03/04/2014
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I use t WDoubleSpinBox and want to set the decimals depending on some code either to 2 or 0. If I set to zero the decimal point is however included.
I would propose to change the
method as follows:
Use
instead of
Also a suffix beginning with "s" of a WDoubleSpinBox will validate any value to invalid and highlights red!?
KD Updated by Koen Deforche over 12 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
- Priority changed from Normal to High
RS Updated by Roel Standaert over 12 years ago
- Status changed from InProgress to Resolved
Hey,
I made it so that toFixedString doesn't produce a decimal point when precision is 0.
I couldn't reproduce your issue with the "s" suffix, though. For me, it works just fine.
Can you open another issue for that, and maybe provide a test case with more details?
Regards,
Roel
SR Updated by Stefan Ruppert over 12 years ago
Hi,
I filed bug #2752. It seems to me that changing the suffix is the problem...
Regards,
Stefan
KD Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
Actions