Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
057553fa
Commit
057553fa
authored
Aug 13, 2013
by
Christian Schulte zu Berge
Browse files
added inited flag to DataContainerInspectorWidget
parent
f0763803
Changes
2
Hide whitespace changes
Inline
Side-by-side
application/gui/datacontainerinspectorwidget.cpp
View file @
057553fa
...
...
@@ -59,6 +59,7 @@ namespace campvis {
DataContainerInspectorWidget
::
DataContainerInspectorWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
_inited
(
false
)
,
_dataContainer
(
0
)
,
_dctWidget
(
0
)
,
_canvas
(
0
)
...
...
@@ -158,6 +159,9 @@ namespace campvis {
}
void
DataContainerInspectorWidget
::
updateInfoWidget
()
{
if
(
!
_inited
)
return
;
// get the selection from the tree widget
const
QModelIndexList
&
indices
=
_dctWidget
->
selectionModel
()
->
selectedRows
();
std
::
vector
<
std
::
pair
<
QString
,
QtDataHandle
>
>
handles
;
...
...
@@ -223,9 +227,12 @@ namespace campvis {
void
DataContainerInspectorWidget
::
init
()
{
if
(
_canvas
!=
0
)
_canvas
->
init
();
_inited
=
true
;
}
void
DataContainerInspectorWidget
::
deinit
()
{
_inited
=
false
;
if
(
_canvas
!=
0
)
_canvas
->
deinit
();
...
...
@@ -236,6 +243,7 @@ namespace campvis {
}
_dataContainer
=
0
;
_dctWidget
->
update
(
0
);
}
void
DataContainerInspectorWidget
::
onDCTWidgetSelectionModelSelectionChanged
(
const
QItemSelection
&
selected
,
const
QItemSelection
&
deselected
)
{
...
...
application/gui/datacontainerinspectorwidget.h
View file @
057553fa
...
...
@@ -150,6 +150,8 @@ namespace campvis {
*/
QString
humanizeBytes
(
size_t
numBytes
)
const
;
bool
_inited
;
DataContainer
*
_dataContainer
;
///< The DataContainer this widget is inspecting
DataContainerTreeWidget
*
_dctWidget
;
///< The TreeWidget showing the DataHandles in _dataContainer
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment