Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
tomwer
Commits
72689cd2
Commit
72689cd2
authored
1 day ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
stitching: update the value only when edition is finished
parent
7fb32e0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tomwer/gui/stitching/config/positionoveraxis.py
+8
-2
8 additions, 2 deletions
src/tomwer/gui/stitching/config/positionoveraxis.py
with
8 additions
and
2 deletions
src/tomwer/gui/stitching/config/positionoveraxis.py
+
8
−
2
View file @
72689cd2
...
...
@@ -333,9 +333,15 @@ class _TomoObjPosition(qt.QWidget):
self
.
layout
().
addWidget
(
self
.
_resetValueQPB
)
# connect signal / slot
self
.
_spinBox
.
valueChang
ed
.
connect
(
self
.
_
valueChang
ed
)
self
.
_spinBox
.
editingFinish
ed
.
connect
(
self
.
_
sbEditingFinish
ed
)
self
.
_resetValueQPB
.
clicked
.
connect
(
self
.
resetOriginalValue
)
def
_sbEditingFinished
(
self
):
sender
=
self
.
sender
()
assert
isinstance
(
sender
,
qt
.
QSpinBox
)
new_value
=
sender
.
value
()
self
.
_valueChanged
(
new_value
=
new_value
)
def
_valueChanged
(
self
,
new_value
):
self
.
sigValueChanged
.
emit
(
self
.
__lastValue
,
...
...
@@ -354,7 +360,7 @@ class _TomoObjPosition(qt.QWidget):
self
.
_positionChanged
()
def
_positionChanged
(
self
):
self
.
_valueChanged
(
new_value
=
self
.
_spinBox
.
value
())
self
.
_valueChanged
(
self
.
_spinBox
.
value
())
def
setValue
(
self
,
value
:
float
)
->
None
:
self
.
_spinBox
.
setValue
(
value
)
...
...
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