Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
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
RobotAPI
Commits
236c22be
Commit
236c22be
authored
3 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Fix types not showing in memory tree widget
parent
8680885e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!192
Fix bugs in ArMem and make disk loading and storing nicer
,
!188
ArMem Updates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.cpp
+7
-5
7 additions, 5 deletions
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.cpp
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.h
+2
-2
2 additions, 2 deletions
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.h
with
9 additions
and
7 deletions
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.cpp
+
7
−
5
View file @
236c22be
...
...
@@ -299,16 +299,18 @@ namespace armarx::armem::gui::memory
(
void
)
level
,
(
void
)
item
;
}
template
<
class
...
T
>
void
TreeWidget
::
updateContainerItem
(
const
base
::
detail
::
MemoryContainerBase
<
T
...
>&
container
,
QTreeWidgetItem
*
item
)
template
<
class
ContainerT
>
void
TreeWidget
::
updateContainerItem
(
const
ContainerT
&
container
,
QTreeWidgetItem
*
item
)
{
ARMARX_IMPORTANT
<<
"Updating container "
<<
container
.
id
();
updateItemItem
(
container
,
item
);
item
->
setText
(
int
(
Columns
::
SIZE
),
QString
::
number
(
container
.
size
()));
if
constexpr
(
std
::
is_base_of_v
<
base
::
detail
::
AronTyped
,
base
::
detail
::
MemoryContainerBase
<
T
...
>>
)
// Does not work
if
constexpr
(
std
::
is_base_of_v
<
base
::
detail
::
AronTyped
,
ContainerT
>
)
{
const
base
::
detail
::
AronTyped
&
cast
=
dynamic_cast
<
const
base
::
detail
::
AronTyped
&>
(
container
);
ARMARX_IMPORTANT
<<
"Updating type of container "
<<
container
.
id
();
const
base
::
detail
::
AronTyped
&
cast
=
static_cast
<
const
base
::
detail
::
AronTyped
&>
(
container
);
std
::
string
typeName
;
if
(
cast
.
aronType
())
{
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/armem_gui/memory/TreeWidget.h
+
2
−
2
View file @
236c22be
...
...
@@ -71,8 +71,8 @@ namespace armarx::armem::gui::memory
QTreeWidgetItem
*
makeItem
(
const
std
::
string
&
key
,
const
std
::
string
&
levelName
,
const
MemoryID
&
id
);
void
updateItemItem
(
const
armem
::
base
::
detail
::
MemoryItem
&
level
,
QTreeWidgetItem
*
item
);
template
<
class
...
T
>
void
updateContainerItem
(
const
armem
::
base
::
detail
::
MemoryContainerBase
<
T
...
>
&
container
,
QTreeWidgetItem
*
item
);
template
<
class
Container
T
>
void
updateContainerItem
(
const
ContainerT
&
container
,
QTreeWidgetItem
*
item
);
private:
...
...
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