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
4106b80d
Commit
4106b80d
authored
3 days ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
stitching: update the value only when edition is finished
parent
3e956289
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 @
4106b80d
...
...
@@ -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.
payno
@payno
mentioned in commit
eb3ab689
·
5 hours ago
mentioned in commit
eb3ab689
mentioned in commit eb3ab6890965dfe214ed47a71b5ae98e1994d329
Toggle commit list
payno
@payno
mentioned in commit
0b9e4564
·
3 hours ago
mentioned in commit
0b9e4564
mentioned in commit 0b9e45640fcfc5780428519e27d2b35a69b9292e
Toggle commit list
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