Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
9f17108e
Commit
9f17108e
authored
Aug 06, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignoring UAS updates while slider has no param name
parent
8d98abe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
QGCParamSlider.cc
src/ui/designer/QGCParamSlider.cc
+21
-21
No files found.
src/ui/designer/QGCParamSlider.cc
View file @
9f17108e
...
@@ -92,29 +92,29 @@ void QGCParamSlider::refreshParamList()
...
@@ -92,29 +92,29 @@ void QGCParamSlider::refreshParamList()
void
QGCParamSlider
::
setActiveUAS
(
UASInterface
*
activeUas
)
void
QGCParamSlider
::
setActiveUAS
(
UASInterface
*
activeUas
)
{
{
if
(
activeUas
)
if
(
activeUas
)
{
{
if
(
uas
)
{
disconnect
(
uas
,
SIGNAL
(
parameterChanged
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
this
,
SLOT
(
setParameterValue
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)));
}
// Connect buttons and signals
connect
(
activeUas
,
SIGNAL
(
parameterChanged
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
this
,
SLOT
(
setParameterValue
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
Qt
::
UniqueConnection
);
uas
=
activeUas
;
// Update current param value
//requestParameter();
// Set param info
// Set param info
QString
text
=
uas
->
getParamManager
()
->
getParamInfo
(
parameterName
);
if
(
!
parameterName
.
isEmpty
())
{
if
(
text
!=
""
)
//disconnect from any existing uas signals
{
if
(
uas
!=
activeUas
)
{
ui
->
infoLabel
->
setToolTip
(
text
);
disconnect
(
uas
,
SIGNAL
(
parameterChanged
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
this
,
SLOT
(
setParameterValue
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)));
ui
->
infoLabel
->
show
();
connect
(
activeUas
,
SIGNAL
(
parameterChanged
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
this
,
SLOT
(
setParameterValue
(
int
,
int
,
int
,
int
,
QString
,
QVariant
)),
Qt
::
UniqueConnection
);
uas
=
activeUas
;
}
QString
text
=
uas
->
getParamManager
()
->
getParamInfo
(
parameterName
);
if
(
text
!=
""
)
{
ui
->
infoLabel
->
setToolTip
(
text
);
ui
->
infoLabel
->
show
();
}
// Force-uncheck and hide label if no description is available
if
(
ui
->
editInfoCheckBox
->
isChecked
())
{
showInfo
((
text
.
length
()
>
0
));
}
}
}
// Force-uncheck and hide label if no description is available
else
{
if
(
ui
->
editInfoCheckBox
->
isChecked
())
//when parameter widgets are first loaded, they are disconnected from any parameter?
{
qWarning
()
<<
__FILE__
<<
":"
<<
__LINE__
<<
"slider has no parameterName??"
;
showInfo
((
text
.
length
()
>
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