Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kmap
xsocs
Commits
9a659eb4
Commit
9a659eb4
authored
Nov 21, 2018
by
Thomas Vincent
Browse files
Fix select point in fit when QSpace was renamed
parent
1609865d
Changes
2
Hide whitespace changes
Inline
Side-by-side
xsocs/gui/XsocsGui.py
View file @
9a659eb4
...
...
@@ -251,7 +251,7 @@ class XsocsGui(Qt.QMainWindow):
if
qspaceItem
is
None
:
raise
ValueError
(
'This fitItem doesnt have a parent.'
)
index
=
self
.
centralWidget
().
pathToIndex
(
qspaceItem
.
p
ath
)
index
=
self
.
centralWidget
().
pathToIndex
(
qspaceItem
.
customP
ath
)
node
=
index
.
data
(
ModelRoles
.
InternalDataRole
)
qspaceView
=
self
.
__showQSpace
(
node
,
bringToFront
=
False
)
qspaceView
.
selectPoint
(
point
.
x
,
point
.
y
)
...
...
xsocs/gui/project/ProjectItem.py
View file @
9a659eb4
...
...
@@ -287,6 +287,21 @@ class ProjectItem(XsocsH5Base):
else
:
return
''
@
property
def
customPath
(
self
):
"""Path with custom item names if defined"""
parent
=
self
.
parent
()
if
parent
is
not
None
:
path
=
parent
.
customPath
else
:
path
=
''
customName
=
self
.
getItemName
()
if
not
customName
:
customName
=
self
.
path
.
split
(
'/'
)[
-
1
]
return
'/'
.
join
((
path
,
customName
))
def
_createItem
(
self
):
"""
Called when the xsocsh5 file is succesfuly called. This should be used
...
...
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