Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
2e7b93c5
Commit
2e7b93c5
authored
Jul 27, 2014
by
Christian Schulte zu Berge
Browse files
Fixed race condition in Qt queued signals of Adjusterwidget.
parent
1fa15a15
Changes
2
Hide whitespace changes
Inline
Side-by-side
application/gui/adjusterwidgets/doubleadjusterwidget.cpp
View file @
2e7b93c5
...
...
@@ -32,9 +32,9 @@ namespace campvis {
{
setSliderProperties
(
_spinBox
->
singleStep
(),
_spinBox
->
minimum
(),
_spinBox
->
maximum
());
connect
(
this
,
SIGNAL
(
s_minChanged
(
double
)),
this
,
SLOT
(
onMinChanged
(
double
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_maxChanged
(
double
)),
this
,
SLOT
(
onMaxChanged
(
double
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_singleStepChanged
(
double
)),
this
,
SLOT
(
onSingleStepChanged
(
double
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_minChanged
(
double
)),
this
,
SLOT
(
onMinChanged
(
double
)));
connect
(
this
,
SIGNAL
(
s_maxChanged
(
double
)),
this
,
SLOT
(
onMaxChanged
(
double
)));
connect
(
this
,
SIGNAL
(
s_singleStepChanged
(
double
)),
this
,
SLOT
(
onSingleStepChanged
(
double
)));
connect
(
_spinBox
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
onSpinBoxValueChanged
(
double
)));
connect
(
_slider
,
SIGNAL
(
valueChanged
(
int
)),
this
,
SLOT
(
onSliderValueChanged
(
int
)));
...
...
application/gui/adjusterwidgets/intadjusterwidget.cpp
View file @
2e7b93c5
...
...
@@ -32,9 +32,9 @@ namespace campvis {
{
setSliderProperties
(
_spinBox
->
singleStep
(),
_spinBox
->
minimum
(),
_spinBox
->
maximum
());
connect
(
this
,
SIGNAL
(
s_minChanged
(
int
)),
this
,
SLOT
(
onMinChanged
(
int
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_maxChanged
(
int
)),
this
,
SLOT
(
onMaxChanged
(
int
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_singleStepChanged
(
int
)),
this
,
SLOT
(
onSingleStepChanged
(
int
))
,
Qt
::
QueuedConnection
);
connect
(
this
,
SIGNAL
(
s_minChanged
(
int
)),
this
,
SLOT
(
onMinChanged
(
int
)));
connect
(
this
,
SIGNAL
(
s_maxChanged
(
int
)),
this
,
SLOT
(
onMaxChanged
(
int
)));
connect
(
this
,
SIGNAL
(
s_singleStepChanged
(
int
)),
this
,
SLOT
(
onSingleStepChanged
(
int
)));
connect
(
_spinBox
,
SIGNAL
(
valueChanged
(
int
)),
this
,
SLOT
(
onSpinBoxValueChanged
(
int
)));
connect
(
_slider
,
SIGNAL
(
valueChanged
(
int
)),
this
,
SLOT
(
onSliderValueChanged
(
int
)));
...
...
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