Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ArmarXGui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
ArmarXGui
Commits
b22706ed
Commit
b22706ed
authored
2 years ago
by
Christoph Pohl
Browse files
Options
Downloads
Patches
Plain Diff
Fix getButtonClicked also working for toggleButtons
parent
1c03f97a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/ArmarXGui/libraries/RemoteGui/Storage.cpp
+13
-3
13 additions, 3 deletions
source/ArmarXGui/libraries/RemoteGui/Storage.cpp
with
13 additions
and
3 deletions
source/ArmarXGui/libraries/RemoteGui/Storage.cpp
+
13
−
3
View file @
b22706ed
...
...
@@ -17,10 +17,20 @@ namespace armarx::RemoteGui
throw
LocalException
(
"Could find value with name: "
)
<<
name
;
}
int
oldValue
=
getSingleValue
<
int
>
(
oldIter
->
second
,
oldIter
->
first
);
int
newValue
=
getSingleValue
<
int
>
(
newIter
->
second
,
newIter
->
first
);
bool
changed
=
false
;
if
(
oldIter
->
second
.
type
==
VALUE_VARIANT_INT
)
{
int
oldValue
=
getSingleValue
<
int
>
(
oldIter
->
second
,
oldIter
->
first
);
int
newValue
=
getSingleValue
<
int
>
(
newIter
->
second
,
newIter
->
first
);
changed
=
newValue
>
oldValue
;
}
else
if
(
oldIter
->
second
.
type
==
VALUE_VARIANT_BOOL
)
{
bool
oldValue
=
getSingleValue
<
bool
>
(
oldIter
->
second
,
oldIter
->
first
);
bool
newValue
=
getSingleValue
<
bool
>
(
newIter
->
second
,
newIter
->
first
);
changed
=
newValue
!=
oldValue
;
}
return
newValue
>
oldValue
;
return
changed
;
}
bool
operator
==
(
const
ValueVariant
&
left
,
const
ValueVariant
&
right
)
...
...
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