Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
e3b41723
Commit
e3b41723
authored
Feb 17, 2010
by
Alexander Wiebel
Browse files
[CHANGE] increased display precision for double properties
parent
8543fd54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
+3
-0
No files found.
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
View file @
e3b41723
...
...
@@ -78,6 +78,9 @@ WPropertyDoubleWidget::WPropertyDoubleWidget( WPropDouble property, QGridLayout*
m_spin
.
setMinimum
(
min
);
m_spin
.
setMaximum
(
max
);
// set display precision
m_spin
.
setDecimals
(
5
);
// set the initial values
m_spin
.
setValue
(
m_doubleProperty
->
get
()
);
m_spin
.
setSingleStep
(
(
max
-
min
)
/
100.0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment