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
d8287c1c
Commit
d8287c1c
authored
Jan 16, 2013
by
Sebastian Eichelbaum
Browse files
[CHANGE
#172
] interval widget now invalidates the property when providing a max<min value.
parent
9597844a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/qt4gui/qt4/controlPanel/WPropertyIntervalWidget.cpp
src/qt4gui/qt4/controlPanel/WPropertyIntervalWidget.cpp
+3
-2
No files found.
src/qt4gui/qt4/controlPanel/WPropertyIntervalWidget.cpp
View file @
d8287c1c
...
...
@@ -117,7 +117,8 @@ void WPropertyIntervalWidget::minMaxUpdated()
bool
validMax
;
double
maxValue
=
m_maxEdit
.
text
().
toDouble
(
&
validMax
);
if
(
!
(
validMin
&&
validMax
)
)
// mark the prop invalid if the user specifies some strange values
if
(
!
(
validMin
&&
validMax
)
||
(
minValue
>
maxValue
)
)
{
invalidate
();
return
;
...
...
@@ -129,6 +130,6 @@ void WPropertyIntervalWidget::minMaxUpdated()
void
WPropertyIntervalWidget
::
reset
()
{
// WProperties does not really provide a default value mechanism.
// WProperties does not really provide a default value mechanism
yet
.
}
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