CSSTUDIO-1812: Fix width of columns in the "Statistics"-tab #2524
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The primary purpose of this merge-request is to increase the width of the columns containing
double
s in the "Statistics"-tab so that the full value is shown. The intent is to prevent the user from mistakenly reading the wrong order of magnitude since the exponent is shown using a postfix-notation at the end of the printable representation of thedouble
in question. E.g., if the number to be shown is1.234E8
, then, if this output is truncated, the user may only be shown1.23...
, and mistakenly think that the order of magnitude is eight powers of ten less than it actually is.To prevent this, this merge-request increase the
minWidth
- andprefWidth
-properties of the columns containingdouble
s to high enough values so that any double should be printable.Other changes that are introduced in this merge-request are:
TableColumn<S, T>
in the classStatisticsTabController
) were changed so that the content of the cells in the table (i.e., theT
inTableColumn<S, T>
) is typed according to the data that it represents.ModelItemStatistics
) were updated so that the types of the elements reflect the types of the data that they hold. (In other words, theS
inTableColumn<S, T>
was also updated.)