Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
9f17108e
Commit
9f17108e
authored
11 years ago
by
tstellanova
Browse files
Options
Downloads
Patches
Plain Diff
ignoring UAS updates while slider has no param name
parent
8d98abe2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/designer/QGCParamSlider.cc
+21
-21
21 additions, 21 deletions
src/ui/designer/QGCParamSlider.cc
with
21 additions
and
21 deletions
src/ui/designer/QGCParamSlider.cc
+
21
−
21
View file @
9f17108e
...
...
@@ -92,31 +92,31 @@ void QGCParamSlider::refreshParamList()
void
QGCParamSlider
::
setActiveUAS
(
UASInterface
*
activeUas
)
{
if
(
activeUas
)
{
if
(
uas
)
{
if
(
activeUas
)
{
// Set param info
if
(
!
parameterName
.
isEmpty
())
{
//disconnect from any existing uas signals
if
(
uas
!=
activeUas
)
{
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
}
QString
text
=
uas
->
getParamManager
()
->
getParamInfo
(
parameterName
);
if
(
text
!=
""
)
{
if
(
text
!=
""
)
{
ui
->
infoLabel
->
setToolTip
(
text
);
ui
->
infoLabel
->
show
();
}
// Force-uncheck and hide label if no description is available
if
(
ui
->
editInfoCheckBox
->
isChecked
())
{
if
(
ui
->
editInfoCheckBox
->
isChecked
())
{
showInfo
((
text
.
length
()
>
0
));
}
}
else
{
//when parameter widgets are first loaded, they are disconnected from any parameter?
qWarning
()
<<
__FILE__
<<
":"
<<
__LINE__
<<
"slider has no parameterName??"
;
}
}
}
void
QGCParamSlider
::
requestParameter
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment